HtmlTemplateCollection.Items Property
In This Article
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<Html |
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