Back to Devexpress

RepositoryItemComboBox.HtmlTemplates Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcombobox-d5c684ef.md

latest2.3 KB
Original Source

RepositoryItemComboBox.HtmlTemplates Property

Stores HTML and CSS-based templates used to render combo box items.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Layout")]
public HtmlTemplateCollection HtmlTemplates { get; }
vb
<DXCategory("Layout")>
Public ReadOnly Property HtmlTemplates As HtmlTemplateCollection

Property Value

TypeDescription
HtmlTemplateCollection

A collection of HTML and CSS-based templates used to render combo box items.

|

Remarks

Combo box items can be rendered from HTML-CSS templates. Use the HtmlTemplates collection to add HTML and CSS-based templates. The first element in this collection becomes the default item template.

You can click the ellipsis button for the HtmlTemplates property to invoke the HTML template editor and create a template:

You can create multiple templates in the HtmlTemplates collection. In this case, you can handle the RepositoryItemComboBox.CustomItemTemplate event to apply different templates to different items.

See Also

CustomizeItem

CustomItemTemplate

RepositoryItemComboBox Class

RepositoryItemComboBox Members

DevExpress.XtraEditors.Repository Namespace