Skip to main content

TdxRibbonBackstageViewGalleryItems.Add Method

Creates a new gallery item and appends it to the current collection.

Declaration

function Add: TdxRibbonBackstageViewGalleryItem;

Returns

Type
TdxRibbonBackstageViewGalleryItem

Remarks

This function creates a new gallery item with default settings, appends it to the current collection, and returns the created item as the function’s result.

The following code sample shows how to create a new gallery item and pin it to the top of a Ribbon Backstage View group called galleryGroup1.

with galleryGroup1.Items.Add do
  begin
    Index := 0;
    Caption := 'My Document';
    Pinned := True;
  end;
See Also