Back to Devexpress

BaseRepositoryItemCheckEdit.GlyphVAlignment Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-baserepositoryitemcheckedit-fdefa897.md

latest3.4 KB
Original Source

BaseRepositoryItemCheckEdit.GlyphVAlignment Property

Gets or sets the vertical alignment of a check box glyph within a check editor.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual VertAlignment GlyphVAlignment { get; set; }
vb
<Browsable(False)>
Public Overridable Property GlyphVAlignment As VertAlignment

Property Value

TypeDescription
VertAlignment

A VertAlignment enumeration value specifying the check box’s vertical alignment.

|

Available values:

NameDescription
Default

Places the text to its default position. The default position is in the center of an object.

| | Top |

Places the text to the top of an object.

| | Center |

Centers the text within an object.

| | Bottom |

Places the text to the bottom of an object.

|

Remarks

Use the GlyphVAlignment property to specify the vertical alignment of the glyph representing a check box within a check editor. This property does not affect the editor caption’s vertical alignment.

Assigning a new value for the GlyphVAlignment property at runtime generates the RepositoryItem.PropertiesChanged event.

The following images demonstrate the check box aligned to the center and to the bottom respectively.

You can also specify the horizontal alignment of the glyph using the BaseRepositoryItemCheckEdit.GlyphAlignment property.

Note

The BaseRepositoryItemCheckEdit.GlyphVerticalAlignment has priority over the GlyphVAlignment property. The GlyphVAlignment property is only in effect when the BaseRepositoryItemCheckEdit.GlyphVerticalAlignment property is set to Default.

See Also

GlyphAlignment

Caption

GlyphVerticalAlignment

BaseRepositoryItemCheckEdit Class

BaseRepositoryItemCheckEdit Members

DevExpress.XtraEditors.Repository Namespace