Insert(Index: Integer; Value: IRibbonContext);
Insert(Index: Integer; Value: Prognoz.Platform.Interop.Forms.RibbonContext);
Index. It is a position in which it is inserted.
Value. It is a context tab that should be inserted in the Index position.
The Insert method inserts the specified context tab in the specified position in the collection.
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: