Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonControl.PageCategoryAlignment Property

Gets or sets the alignment of custom page categories, which display contextual tab pages.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[DefaultValue(RibbonPageCategoryAlignment.Default)]
[DXCategory("Behavior")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public RibbonPageCategoryAlignment PageCategoryAlignment { get; set; }

#Property Value

Type Default Description
RibbonPageCategoryAlignment Default

A RibbonPageCategoryAlignment value that specifies the alignment of custom page categories.

Available values:

Name Description
Default

The same as the RibbonPageCategoryAlignment.Left option.

Left

Headers of contextual page categories are aligned to a RibbonControl’s left edge.

Right

Headers of contextual page categories are aligned to a RibbonControl’s right edge.

#Remarks

Custom page categories are stored in the RibbonControl.PageCategories collection.

If the PageCategoryAlignment property is set to Left or Default, custom page categories are displayed immediately to the right of the RibbonControl’s regular pages:

CD_RibbonPageCategory_ContextTabsColored

If the PageCategoryAlignment property is set to Right, custom page categories are anchored to the RibbonControl’s right edge:

CD_RibbonPageCategory_ContextTabsColoredRight

See Also