Back to Devexpress

GroupControl.HtmlImages Property

windowsforms-devexpress-dot-xtraeditors-dot-groupcontrol-e0fafbf2.md

latest3.0 KB
Original Source

GroupControl.HtmlImages Property

Gets or sets a collection of images that can be inserted into the control’s caption (GroupControl.Text) using the image tag.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Appearance")]
public virtual object HtmlImages { get; set; }
vb
<DefaultValue(Nothing)>
<DXCategory("Appearance")>
Public Overridable Property HtmlImages As Object

Property Value

TypeDefaultDescription
Objectnull

An image collection (DevExpress.Utils.ImageCollection or DevExpress.Utils.SvgImageCollection).

|

Remarks

Enable the GroupControl.AllowHtmlText property to use a set of HTML-inspired tags to format the display text of the control’s caption (GroupControl.Text).

When you compose an HTML string, you can use the image tag to insert an image from an image collection and project’s resources into the text.

To insert an image from an image collection, do the following:

  • Create an image collection (ImageCollection or SvgImageCollection) and populate it with images.

  • Assign the collection to the HtmlImages property.

  • When you use the image tag, address a target image by its name (image names can be obtained from the image collection).

  • C#

  • VB.NET

csharp
groupControl1.AllowHtmlText = true;
groupControl1.HtmlImages = imageCollection1;
groupControl1.Text = "Settings <image=settings.png>";
vb
groupControl1.AllowHtmlText = True
groupControl1.HtmlImages = imageCollection1
groupControl1.Text = "Settings <image=settings.png>"

See HTML Text Formatting to learn more.

See Also

AllowHtmlText

Text

HTML-inspired Text Formatting

GroupControl Class

GroupControl Members

DevExpress.XtraEditors Namespace