Skip to main content

LayoutGroup.ContentImage Property

Gets or sets the group’s background image that is displayed “as is”, and can be aligned to any group’s edge.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[Browsable(false)]
[DefaultValue(null)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Image ContentImage { get; set; }

Property Value

Type Default Description
Image null

An Image object.

Remarks

A layout group supports two background images that are specified by the LayoutGroup.BackgroundImage and ContentImage properties. These images overlap, and this allows you to create specific painting effects.

The image assigned to the LayoutGroup.BackgroundImage is displayed at the group’s bottommost level. It can be stretched across the group’s area, tiled, centered, etc. Its layout is specified by the LayoutGroup.BackgroundImageLayout property.

The image assigned to the ContentImage property is displayed above the LayoutGroup.BackgroundImage image. Use the LayoutGroup.ContentImageAlignment property to set the image’s alignment within the group.

See Also