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

HtmlTemplateCollection.Items Property

Allows you to access templates stored inside this HtmlTemplateCollection.

Namespace: DevExpress.Utils.Html

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

[Browsable(false)]
public IList<HtmlTemplate> Items { get; }

#Property Value

Type Description
IList<HtmlTemplate>

The list of templates stored by this collection.

#Remarks

To retrive templates stored inside an HtmlTemplateCollection, use a zero-based integer index…

// Retrieve the third template of the collection
var template = htmlTemplateCollection1[2];

…or use Linq expressions to find templates that fit the required criteria.

// Find and retrieve the first template whose stylesheet contains the "fill: red" property
var template = htmlTemplateCollection1.First(x => x.Styles.Contains("fill: red"));
See Also