Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual VertAlignment GlyphVAlignment { get; set; }

#Property Value

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.

#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.

CheckEdit_VAlignment_Center

CheckEdit_VAlignment_Bottom

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