Back to Devexpress

RibbonControl.PageCategoryAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-ea96b07e.md

latest2.9 KB
Original Source

RibbonControl.PageCategoryAlignment Property

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

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(RibbonPageCategoryAlignment.Default)]
[DXCategory("Behavior")]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public RibbonPageCategoryAlignment PageCategoryAlignment { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(RibbonPageCategoryAlignment.Default)>
<XtraSerializableProperty>
<EditorBrowsable(EditorBrowsableState.Never)>
<Browsable(False)>
Public Property PageCategoryAlignment As RibbonPageCategoryAlignment

Property Value

TypeDefaultDescription
RibbonPageCategoryAlignmentDefault

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

|

Available values:

NameDescription
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:

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

See Also

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace