An ElementHostTypeEnum expression that defines type of the element.
By default, the Type property is exElementHostDefault,
which defines the default node, with caption, check, pictures and so on. Use
the Type property to change the element's type. Changing the Type property at
runtime, loses the properties like Caption, Pictures, and so on. So setting
the Type property must be done before calling or changing any of the other
properties. Use the Add
method to add an element of exElementHostDefault type. Use the InsertControl
method to add a new element whose Type property is set on
exElementHostControl. The Copy property
copies the element. Use the Caption/ExtraCaption
property to specify the element's caption or extra-caption. Use the Pictures/ExtraPictures
property to display one or more icons, picture to the element. Use the ShowCheckBox
property to show the element's check box. Use the ElementFormat
property to define how the parts of the element are displayed.
In case, the Type property is:
exElementHostWindow, you must use the Window
property to associate an existent window with the current element.
exElementHostControl, you must use the Control/License
property to create an inner control or an ActiveX control. Use the ElementFormat
property to define how the parts of the element are displayed. The control
fires the OLEEvent event if an
inside ActiveX control fires an event.