Skip to main content

RepositoryItemHyperLinkEdit.ImageAlignment Property

Gets or sets the alignment of the image displayed within the edit box.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

Property Value

Type Default Description
HorzAlignment Near

A HorzAlignment enumeration member which specifies the image’s 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

A hyperlink editor allows an image to be displayed within its edit box. The image is specified by the RepositoryItemHyperLinkEdit.Image property and can only be aligned horizontally. The available alignment options are listed in the table below.

Member Name

Description

Center

The image is centered within the edit box and the link’s caption is hidden.

HyperLink_GlyphAlignment_Center

Default

The image is positioned on the edit box’s left side.

Far

The image is positioned on the edit box’s right side.

HyperLink_GlyphAlignment_Far

Near

The image is positioned on the edit box’s left side.

HyperLink_GlyphAlignment_Near

See Also