windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-baserepositoryitemcheckedit-fdefa897.md
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
[Browsable(false)]
public virtual VertAlignment GlyphVAlignment { get; set; }
<Browsable(False)>
Public Overridable Property GlyphVAlignment As VertAlignment
| Type | Description |
|---|---|
| VertAlignment |
A VertAlignment enumeration value specifying the check box’s vertical alignment.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
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
BaseRepositoryItemCheckEdit Class