Back to Devexpress

HtmlTemplateCollection.AddTemplate(String, String) Method

windowsforms-devexpress-dot-utils-dot-html-dot-htmltemplatecollection-dot-addtemplate-x28-system-dot-string-system-dot-string-x29.md

latest1.8 KB
Original Source

HtmlTemplateCollection.AddTemplate(String, String) Method

Initializes a new HTML template and places it into this collection.

Namespace : DevExpress.Utils.Html

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public virtual HtmlTemplate AddTemplate(
    string template = null,
    string styles = null
)
vb
Public Overridable Function AddTemplate(
    template As String = Nothing,
    styles As String = Nothing
) As HtmlTemplate

Optional Parameters

NameTypeDefaultDescription
templateStringnull

A string that stores the entire HTML markup of a newly created template.

| | styles | String | null |

A string that stores the stylesheet (CSS styles) for the newly created template.

|

Returns

TypeDescription
HtmlTemplate

The new template created with the given markup and stylesheet strings.

|

See Also

HtmlTemplateCollection Class

HtmlTemplateCollection Members

DevExpress.Utils.Html Namespace