Skip to main content

ShapeDescription.CreateTemplateShape(String, String, ShapeTemplate) Method

Creates a shape from the specified template.

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v24.1.Core.dll

NuGet Package: DevExpress.Diagram.Core

Declaration

public static ShapeDescription CreateTemplateShape(
    string shapeId,
    string name,
    ShapeTemplate template
)

Parameters

Name Type Description
shapeId String

A System.String value that is the identifier of the template.

name String

A System.String value that is the name of the template.

template DevExpress.Diagram.Core.Shapes.ShapeTemplate

A DevExpress.Diagram.Core.Shapes.ShapeTemplate object that contains shape description.

Returns

Type Description
ShapeDescription

A ShapeDescription instance.

Remarks

To learn more, see the following examples.

WPF: How to Create Custom Shapes with Custom Connection Points for DiagramDesignerControl

Winforms: How to create custom shapes with connection points

See Also