Back to Devexpress

NavElement.GlyphAlignment Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-navelement-4bc9090d.md

latest2.4 KB
Original Source

NavElement.GlyphAlignment Property

Gets or sets the alignment of the NavElement.Glyph, which is displayed when the NavElement is rendered as a button in the TileNavPane‘s nav bar.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[DefaultValue(NavButtonAlignment.Default)]
[DXCategory("Appearance")]
public virtual NavButtonAlignment GlyphAlignment { get; set; }
vb
<Browsable(False)>
<DefaultValue(NavButtonAlignment.Default)>
<DXCategory("Appearance")>
Public Overridable Property GlyphAlignment As NavButtonAlignment

Property Value

TypeDefaultDescription
DevExpress.XtraBars.Navigation.NavButtonAlignmentDefault

The value specifying the glyph alignment.

|

Remarks

Use the GlyphAlignment property to specify the alignment of the NavElement.Glyph when the NavElement is rendered as a button in the TileNavPane‘s nav bar. The NavButtonAlignment enumeration provides the following values:

  • Default and Left – the glyph is left-aligned
  • Right – the glyph is right-aligned

To specify the alignment of images in tiles, use the TileItem.ImageAlignment property which can be accessed via the TileNavElement.Tile object.

See Also

Glyph

ImageAlignment

NavElement Class

NavElement Members

DevExpress.XtraBars.Navigation Namespace