Container - ComponentControls Property

ComponentControls is a collection of all the controls contained in this component.

Member of Container (PRIM_CPST)

Data Type - Collection ofPRIM_CTRL - Base class for all visual controls

Details

The ComponentControls property provides runtime access to all controls parented to the composite.

Programmatic access to the controls contained in a component allows for simplified automated processing.

Example

Thie example shows a FOR loop iterating over the controls. If the control is label, the caption is tested.

     For Each(#Control) In(#Com_owner.ComponentControls) 

Continue If(#Control *IsNot #Prim_labl)

If ((#Control *As #prim_labl).Caption.contains( #Search ))
#Control.Style <= #Highlight
Endif

Endfor


See also

All Component Classes

Technical Reference