Skip to main content

RibbonControl.RibbonCaptionAlignment Property

Gets or sets the alignment of the ribbon caption in a Ribbon Form.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

Declaration

[DefaultValue(RibbonCaptionAlignment.Default)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public RibbonCaptionAlignment RibbonCaptionAlignment { get; set; }

Property Value

Type Default Description
DevExpress.XtraBars.Ribbon.RibbonCaptionAlignment Default

A DevExpress.XtraBars.Ribbon.RibbonCaptionAlignment enumerator value that specifies the alignment of the ribbon caption in a Ribbon Form.

Remarks

When a RibbonControl is hosted within a Ribbon Form, the form caption is replaced by a composite text string. Typically, its first part is the constant application name (the RibbonControl.ApplicationCaption property), while the second part is the name of the currently opened document (the RibbonControl.ApplicationDocumentCaption property). By default, this entire text block is aligned to the form’s middle. Use the RibbonCaptionAlignment property to change this default location. The figure below illustrates a RibbonControl with its application caption aligned to the form’s left.

Ribbon - Caption Alignment

See Also