ITabObjectGroup.ChildItemsCount

Syntax

ChildItemsCount: Integer;

Description

The ChildItemsCount property returns the number of group elements.

Example

Executing the example requires a form with the Button1 button located on it, the TabSheetBox component, and the UiTabSheet component named UiTabSheet1, that is used as a data source for TabSheetBox. The table must contain at least one group of objects. The link to the Tab system assembly must be added.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Tab: ITabSheet;
    Group1: ITabObjectGroup;
Begin
    Tab := UiTabSheet1.TabSheet;
    Group1 := Tab.Objects.GroupSelected;
    Debug.WriteLine("Number of group elements = " + Group1.ChildItemsCount.ToString);
End Sub Button1OnClick;

After executing the example the console will display the message with the number of group elements.

See also:

ITabObjectGroup