RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.GetSelections Method

Fills a list with all selected components on the current root object.

Pascal
procedure GetSelections(const List: IDesignerSelections);
C++
__fastcall GetSelections(const IDesignerSelections List);

Use GetSelections to access every component currently selected on the root object returned by the GetRoot method. 

Pass a component (such as TDesignerSelectionList) that supports the IDesignerSelections interface as the List parameter. GetSelections fills this component with references to the selected objects.

Note: GetSelections can return persistent objects that are not components, as well as components.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!