Back to Devexpress

DiagramBuilder.CustomShapeTemplate(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-diagrambuilder-dot-customshapetemplate-x28-system-dot-string-x29.md

latest1.5 KB
Original Source

DiagramBuilder.CustomShapeTemplate(String) Method

Specifies the client-side customShapeTemplate.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public DiagramBuilder CustomShapeTemplate(
    string templateContent
)

Parameters

NameTypeDescription
templateContentString

A string that contains the template.

|

Returns

TypeDescription
DiagramBuilder

A reference to this instance after the method is called.

|

Remarks

This method allows you to specify a short template for a custom shape. Refer to the Templates article for more information and code examples.

cshtml
@(Html.DevExtreme().Diagram()
    .CustomShapeTemplate("Template content")
)

See Also

DiagramBuilder Class

DiagramBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace