Back to Devexpress

LayoutControlItem.ImageOptions Property

windowsforms-devexpress-dot-xtralayout-dot-layoutcontrolitem-f7db9de6.md

latest2.7 KB
Original Source

LayoutControlItem.ImageOptions Property

Gets options that allow you to display an icon in the item’s label.

Namespace : DevExpress.XtraLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Appearance")]
public virtual LayoutControlItemImageOptions ImageOptions { get; }
vb
<DXCategory("Appearance")>
Public Overridable ReadOnly Property ImageOptions As LayoutControlItemImageOptions

Property Value

TypeDescription
LayoutControlItemImageOptions

A LayoutControlItemImageOptions object that specifies an icon displayed in the item’s label.

|

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

Images

LayoutControlItem Class

LayoutControlItem Members

DevExpress.XtraLayout Namespace