windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemradiogroup-1fc2a6c7.md
Gets or sets the horizontal alignment of a radio box glyph within a radio group editor.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(HorzAlignment.Near)]
[DXCategory("Behavior")]
public HorzAlignment GlyphAlignment { get; set; }
<DXCategory("Behavior")>
<DefaultValue(HorzAlignment.Near)>
Public Property GlyphAlignment As HorzAlignment
| Type | Default | Description |
|---|---|---|
| HorzAlignment | Near |
A HorzAlignment enumeration value specifying the radio box’s horizontal alignment.
|
Available values:
| Name | Description |
|---|---|
| Default |
Places an object or text at the default position, which is determined by a control.
| | Near |
Places an object/text at a near position.
| | Center |
Centers an object or text within a region.
| | Far |
Places an object/text at a far position.
|
Use the GlyphAlignment property to specify the horizontal alignment of the glyph which is representing a radio box within a radio group editor. This property also affects the alignment of the editor’s caption text. Text for the editor’s caption region can be specified via the RadioGroupItem.Description property. If the GlyphAlignment property is set to HorzAlignment.Center, caption text is hidden.
The following image demonstrates different alignment modes:
Assigning a new value for the GlyphAlignment property at runtime generates the RepositoryItem.PropertiesChanged event.
See Also
RepositoryItemRadioGroup Class