DiagramShapeDefaultsSettingsTagHelper

Example

Razor
<shape-defaults>
    <connector-defaults></connector-defaults>
    <connectors />
    <content></content>
    <editable></editable>
    <fill />
    <hover></hover>
    <rotation />
    <stroke />
</shape-defaults>

ChildTags

Attributes

AttributeTypeDescription
heightDoubleDefines the default height of shapes in the Diagram.
min-heightDoubleDefines the minimum height the shape can have. Use this setting to apply a lower limit to the height of shapes when users resize them.
min-widthDoubleDefines the minimum width the shape can have. Use this setting to apply a lower limit to the width of shapes when users resize them.
pathStringThe path option of a Shape is a description of a custom geometry. The format follows the standard SVG format (https://www.w3.org/TR/SVG/paths.html#PathData "SVG Path data.").
selectableBooleanSpecifies if Diagram shapes can be selected.
sourceStringThe path/URL to the shape image. Applicable when the type is set to "image".
typeStringSpecifies the type of the Shape using any of the built-in shape type. "rectangle": this is the default option; "circle": a circle/ellipse; "image": an image or "text": some text.
visualStringA function that returns a visual element to render for a given shape. The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.
widthDoubleDefines the default width of shapes in the Diagram.
xDoubleDefines the x-coordinate of shapes added to the Diagram.
yDoubleDefines the y-coordinate of shapes added to the Diagram.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support