Skip to main content

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

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(HorzAlignment.Near)]
[DXCategory("Behavior")]
public HorzAlignment GlyphAlignment { get; set; }

Property Value

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.

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:

RadioGroup_GlyphAlignment

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

See Also