Back to Devexpress

LayoutControlItemImageOptions.ImageToTextDistance Property

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrolitemimageoptions-789d7f29.md

latest3.1 KB
Original Source

LayoutControlItemImageOptions.ImageToTextDistance Property

Gets or sets the amount of space between the icon and the text in the label.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(5)]
[DXCategory("Appearance")]
public int ImageToTextDistance { get; set; }
vb
<DefaultValue(5)>
<DXCategory("Appearance")>
Public Property ImageToTextDistance As Integer

Property Value

TypeDefaultDescription
Int325

An integer value that specifies the amount of space between the icon and the text in the label.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ImageToTextDistance
LayoutControlItem

.ImageOptions .ImageToTextDistance

| | SimpleLabelItem |

.ImageOptions .ImageToTextDistance

|

Remarks

Use the ImageOptions property to access the following options, which allow you to specify the icon in the layout item’s label:

SvgImageSpecifies a vector image.ImageUriSpecifies a universal resource identifier of an image in the DX Image Gallery.ImageSpecifies a raster image.ImageIndexSpecifies an index of an image in the Images collection.AlignmentSpecifies the alignment of the image in the label.ImageToTextDistanceSpecifies the distance between the label’s text and icon.AllowGlyphSkinning

Specifies whether the icon is filled with the label’s foreground color. This property overrides AllowGlyphSkinning options specified at the level of the parent group/owner control.

Tip

We recommend using gray-scale icons from the DX Image Gallery for best visual results.

See Also

LayoutControlItemImageOptions Class

LayoutControlItemImageOptions Members

DevExpress.XtraLayout Namespace