Skip to main content
A newer version of this page is available. .
All docs
V22.2

HtmlTemplateCollection.Items Property

Allows you to access templates stored inside this HtmlTemplateCollection.

Namespace: DevExpress.Utils.Html

Assembly: DevExpress.Utils.v22.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