IRibbon.TabElements

Fore Syntax

TabElements: IRibbonElementsCollection;

Fore.NET Syntax

TabElements: Prognoz.Platform.Interop.Forms.IRibbonElementsCollection;

Description

The TabElements property returns the collection of common controls of the ribbon.

Comments

Common controls are shown at the right on the same level as the ribbon tab names. The common controls do not belong to any tab.

The following controls can be added to the collection of common controls:

Example

Executing the example requires a form, a button with the Button1 name on it and the Ribbon component named Ribbon1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    TabElements: IRibbonElementsCollection;
    Btn: IRibbonButton;
    Edit: IRibbonEdit;
Begin
    TabElements := Ribbon1.TabElements;
    Btn := New RibbonButton.Create;
    Edit := New RibbonEdit.Create;
    //Add elements to the collection
    TabElements.Add(Btn);
    TabElements.Add(Edit);
    //Change required properties
    Btn.Text := "New";
End Sub Button1OnClick;

On clicking the button two elements are added to the collection of common ribbon controls.

See also:

IRibbon