Back to Devexpress

RibbonControl.RibbonCaptionAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-1e8a704b.md

latest2.6 KB
Original Source

RibbonControl.RibbonCaptionAlignment Property

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

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(RibbonCaptionAlignment.Default)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public RibbonCaptionAlignment RibbonCaptionAlignment { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(RibbonCaptionAlignment.Default)>
<XtraSerializableProperty>
Public Property RibbonCaptionAlignment As RibbonCaptionAlignment

Property Value

TypeDefaultDescription
DevExpress.XtraBars.Ribbon.RibbonCaptionAlignmentDefault

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.

See Also

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace