HtmlTemplateCollection.Items Property
Allows you to access templates stored inside this HtmlTemplateCollection.
Namespace: DevExpress.Utils.Html
Assembly: DevExpress.Utils.v24.1.dll
NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core
Declaration
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