Skip to main content
A newer version of this page is available. .

ASPxSpreadsheet.CreateDefaultRibbonTabs(Boolean) Method

Creates a collection of default Ribbon tabs, specifying what to do with tabs that already exist within the ASPxSpreadsheet.RibbonTabs collection.

Namespace: DevExpress.Web.ASPxSpreadsheet

Assembly: DevExpress.Web.ASPxSpreadsheet.v20.2.dll

NuGet Package: DevExpress.Web.Office

Declaration

public void CreateDefaultRibbonTabs(
    bool clearExistingTabs
)

Parameters

Name Type Description
clearExistingTabs Boolean

true to delete existing tabs; false to add the default tabs to the collection.

Remarks

Use the CreateDefaultRibbonTabs method, to manually create a default set of Ribbon tabs within the ASPxSpreadsheet. The method’s clearExistingTabs parameter allows you to specify how tabs that already exist within the ASPxSpreadsheet.RibbonTabs collection are dealt with.

Custom tabs can be added to the ASPxSpreadsheet.RibbonTabs collection using the collection’s Collection<T>.Add method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateDefaultRibbonTabs(Boolean) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also