Back to Devexpress

RepositoryItemRadioGroup.GlyphAlignment Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemradiogroup-1fc2a6c7.md

latest2.7 KB
Original Source

RepositoryItemRadioGroup.GlyphAlignment Property

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

Declaration

csharp
[DefaultValue(HorzAlignment.Near)]
[DXCategory("Behavior")]
public HorzAlignment GlyphAlignment { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(HorzAlignment.Near)>
Public Property GlyphAlignment As HorzAlignment

Property Value

TypeDefaultDescription
HorzAlignmentNear

A HorzAlignment enumeration value specifying the radio box’s horizontal alignment.

|

Available values:

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

|

Remarks

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

RepositoryItemRadioGroup Members

DevExpress.XtraEditors.Repository Namespace