ChildItemsCount: Integer;
ChildItemsCount: integer;
The ChildItemsCount property returns the number of group elements.
To execute the example, a form with a button named Button1 on it, the TabSheetBox component, and the UiTabSheet component named UiTabSheet1, that is used as a data source for TabSheetBox are required. 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.
To execute the example, a .NET form with a button named button1 on it, the TabSheetBoxNet component, and the UiTabSheetNet component named uiTabSheetNet1, that is used as a data source for TabSheetBoxNet are required. The table should contain at least one group of objects. The link to the Tab system assembly must be added.
Imports Prognoz.Platform.Interop.Tab;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Tab: ITabSheet;
Group1: ITabObjectGroup;
Begin
Tab := uiTabSheetNet1.TabSheetUi.TabSheet;
Group1 := Tab.Objects.GroupSelected();
System.Diagnostics.Debug.WriteLine("Number of group elements = " + Group1.ChildItemsCount.ToString());
End Sub;
After executing the example the console displays the message with the corresponding number of group elements.
See also: