ITabObjects.UngroupSelected

Fore Syntax

UngroupSelected;

Fore.NET Syntax

UngroupSelected();

Description

The UngroupSelected method ungroups the selected objects.

Comments

If several groups are selected, the method ungroups all of them.

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 objects created in the table are be grouped. The link to the Tab system assembly should be added.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    i: integer;
    Tab: ITabSheet;
    Objs: ITabObjects;
Begin
    Tab := UiTabSheet1.TabSheet;
    Objs := Tab.Objects;
    For i := 0 To (Objs.Count - 1Do
        Objs.Item(i).Select_;
    End For;
    Objs.UngroupSelected;
End Sub Button1OnClick;

After executing the example the selected objects are ungrouped.

Fore.NET Example

Executing the example requires a .NET form with a button named button1 on it, the TabSheetBoxNet component and the UiTabSheetNet component named uiTabSheetNet1, which is used as a data source for TabSheetBoxNet. Objects created in the table are to be grouped. 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
    i: integer;
    Tab: ITabSheet;
    Objs: ITabObjects;
Begin
    Tab := uiTabSheetNet1.TabSheetUi.TabSheet;
    Objs := Tab.Objects;
    For i := 0 To (Objs.Count - 1Do
        Objs.Item[i].@Select();
    End For;
    Objs.UngroupSelected();
End Sub;

After executing the example the selected objects are ungrouped.

See also:

ITabObjects | ITabObjects.GroupSelected