Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutGroupCaptionImageOptions.Location Property

Gets or sets the alignment of the icon relative to the text.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(GroupElementLocation.Default)]
[DXCategory("Appearance")]
public GroupElementLocation Location { get; set; }

#Property Value

Type Default Description
GroupElementLocation Default

A value that specifies the alignment of the icon relative to the text.

Available values:

Name Description
Default

Specifies the default position of an element relative to a text label. Currently, the Default option is equivalent to the BeforeText option.

BeforeText

Displays an element before a text label.

AfterText

Displays an element after a text label.

#Property Paths

You can access this nested property as listed below:

Object Type Path to Location
LayoutGroup
.CaptionImageOptions .Location

#Remarks

Use the CaptionImageOptions property to access the following options, which allow you to specify the icon in the layout group or tab’s label:

SvgImage
Specifies a vector image.
ImageUri
Specifies a universal resource identifier of an image in the DX Image Gallery.
Image
Specifies a raster image.
ImageIndex
Specifies an index of an image in the Images collection.
Location
Specifies the alignment of the image relative to the text. This property is not in effect in a tab.
Padding
Specifies the amount of space between the icon and the label’s bounds. This property overrides the tabbed group’s CaptionImagePadding property, which specifies the padding for all tabs in the tabbed group.
AllowGlyphSkinning

Specifies whether the icon is filled with the control’s foreground color. This property overrides the control’s AllowGlyphSkinning option. You can also use a layout item’s AllowGlyphSkinning option to enable this feature for an individual item.

Layout Control - AllowGlyphSkinning

Tip

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

Visible
Specifies whether the icon is visible.
See Also