TdxCustomAdorner.TargetElementClassName Property
Specifies the name of the adorner’s target element class.
Declaration
property TargetElementClassName: string read; write;
Property Value
Type |
---|
string |
Remarks
You can use this property to switch between the currently supported ways to specify the adorner’s target UI element:
The control target element class’ name to anchor the adorner to a control on the parent form;
The path target element class’ name to anchor the adorner to UI elements managed by other controls and components, such as individual bar items.
The current TargetElementClassName property value determines the actual type of the target UI element accessible via the TargetElement property. To access the Control or Path sub-property, you need to cast the property value to the class whose name is specified by the TargetElementClassName property.
Alternatively, you can specify a class-reference to the required target element class by using the TargetElementClass property.
Note
Using the TargetElementClassName property is preferable to TargetElementClass in C++Builder code.