ITabObject.ParentGroup

Syntax

ParentGroup: ITabObjectGroup;

Description

The ParentGroup property returns the item group.

Comments

If the current object does not belong to a group, the ParentGroup property returns the Null value.

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 should contain at least one group of objects. The link to the Tab system assembly should be added.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Tab: ITabSheet;
    Group: ITabObjectGroup;
Begin
    Tab := UiTabSheet1.TabSheet;
    Group := Tab.Objects.Item(0).ParentGroup;
    Debug.WriteLine(Group.Id);
End Sub Button1OnClick;

After executing the example the property returns the group, which contains the current object. The group name is to be displayed in the console window.

See also:

ITabObject