IRibbonContexts.Insert

Fore Syntax

Insert(Index: Integer; Value: IRibbonContext);

Fore.NET Syntax

Insert(Index: Integer; Value: Prognoz.Platform.Interop.Forms.RibbonContext);

Parameters

Index. It is a position in which it is inserted.

Value. It is a context tab that should be inserted in the Index position.

Description

The Insert method inserts the specified context tab in the specified position in the collection.

Comments

If the context tab is created dynamically, it should be added to the ribbon after creation. It should be included in the collection using Add or Insert method. The parameters of the tab can be changed. If the user wants to move the context tab, he should remove it from the collection.

Var
    RContexts: IRibbonContexts;
    RContext: IRibbonContext;
Begin
    RContexts := Ribbon1.Contexts;
    RContext := RContexts.Item(0);
    RContexts.Remove(RContext);
    RContexts.Insert(RContexts.Count, RContext);

See also:

IRibbonContexts