RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPropertyEditor.GetComponent Method

Returns the specified object from the set of all objects currently being edited by the property editor.

Pascal
function GetComponent(Index: Integer): TPersistent;
C++
__fastcall TPersistent * GetComponent(int Index);

Call GetComponent to access any of the objects with a property currently being edited by the property editor. The Index parameter is used to specify individual objects in the internal list maintained by the property editor. Index should be a value between 0 and PropCount - 1, inclusive. 

Use GetComponent to iterate over all objects currently being edited. 

 

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