ITabObject.ParentGroup

Fore Syntax

ParentGroup: ITabObjectGroup;

Fore.NET Syntax

ParentGroup: Prognoz.Platform.Interop.Tab.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.

Fore Example

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 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.

Fore.NET Example

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 link to the Tab system assembly should be added.

Imports Prognoz.Platform.Interop.Tab;
...
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Tab: ITabSheet;
    Group: ITabObjectGroup;
Begin
    Tab := UiTabSheetNet1.TabSheetUi.TabSheet;
    Group := Tab.Objects.Item[0].ParentGroup;
    System.Diagnostics.Debug.WriteLine(Group.Id);
End Sub;

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