Back to Devexpress

HtmlContentControl.HtmlTemplate Property

windowsforms-devexpress-dot-xtraeditors-dot-htmlcontentcontrol-02521536.md

latest1.8 KB
Original Source

HtmlContentControl.HtmlTemplate Property

Gets the control’s HTML-CSS template.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
HtmlTemplate

The control’s HTML-CSS template.

|

Remarks

At design time, click the control’s smart tag and select the Edit Template command to open the HTML-CSS editor.

Use the HtmlTemplate property to specify HTML markup and CSS styles in code. The HtmlTemplate object exposes two nested properties for this purpose:

  • HtmlTemplate.Template — Specifies HTML code that defines the layout of UI elements.
  • HtmlTemplate.Styles — Specifies CSS styles applied to the UI elements.

See the following topic for more information: HtmlContentControl.

See Also

HtmlContentControl Class

HtmlContentControl Members

DevExpress.XtraEditors Namespace