New to Telerik UI for ASP.NET Core? Download free 30-day trial

DiagramShapeDefaultsSettingsBuilder

Methods

Connectors(System.Action)

Defines the connectors the shape owns. A connector is the point in the shape where a connection between this shape and another one can originate from or end. "top" - top connector.; "right" - right connector.; "bottom" - bottom connector.; "bottomRight" - bottom right connector.; "left" - left connector. or "auto" - auto connector.. You can define your own custom connectors or use the predefined types.

Parameters

configurator - System.Action<DiagramShapeDefaultsSettingsConnectorFactory>

The configurator for the connectors setting.

ConnectorDefaults(System.Action)

Defines the default options for the shape connectors.

Parameters

configurator - System.Action<DiagramShapeDefaultsConnectorDefaultsSettingsBuilder>

The configurator for the connectordefaults setting.

Content(System.Action)

Defines the default shapes content settings.

Parameters

configurator - System.Action<DiagramShapeDefaultsContentSettingsBuilder>

The configurator for the content setting.

Editable(System.Action)

Defines the shape editable options.

Parameters

configurator - System.Action<DiagramShapeDefaultsEditableSettingsBuilder>

The configurator for the editable setting.

Editable(System.Boolean)

Defines the shape editable options.

Parameters

enabled - System.Boolean

Enables or disables the editable option.

Fill(System.Action)

Defines the fill options of the shape. Use these settings to apply a single-color or a gradient background to all shapes in the Diagram.

Parameters

configurator - System.Action<DiagramShapeDefaultsFillSettingsBuilder>

The configurator for the fill setting.

Height(System.Double)

Defines the default height of shapes in the Diagram.

Parameters

value - System.Double

The value for Height

Hover(System.Action)

Defines the hover configuration.

Parameters

configurator - System.Action<DiagramShapeDefaultsHoverSettingsBuilder>

The configurator for the hover setting.

MinHeight(System.Double)

Defines the minimum height the shape can have. Use this setting to apply a lower limit to the height of shapes when users resize them.

Parameters

value - System.Double

The value for MinHeight

MinWidth(System.Double)

Defines the minimum width the shape can have. Use this setting to apply a lower limit to the width of shapes when users resize them.

Parameters

value - System.Double

The value for MinWidth

Path(System.String)

The 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.").

Parameters

value - System.String

The value for Path

Rotation(System.Action)

Defines the rotation of the shape.

Parameters

configurator - System.Action<DiagramShapeDefaultsRotationSettingsBuilder>

The configurator for the rotation setting.

Selectable(System.Boolean)

Specifies if Diagram shapes can be selected.

Parameters

value - System.Boolean

The value for Selectable

Source(System.String)

The path/URL to the shape image. Applicable when the type is set to "image".

Parameters

value - System.String

The value for Source

Stroke(System.Action)

Defines the configuration of the border around Diagram shapes.

Parameters

configurator - System.Action<DiagramShapeDefaultsStrokeSettingsBuilder>

The configurator for the stroke setting.

Type(System.String)

Specifies 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.

Parameters

value - System.String

The value for Type

Visual(System.String)

A 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.

Parameters

handler - System.String

The name of the JavaScript function that will be evaluated.

Visual(System.Func)

A 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.

Parameters

handler - System.Func<Object,Object>

The handler code wrapped in a text tag.

Width(System.Double)

Defines the default width of shapes in the Diagram.

Parameters

value - System.Double

The value for Width

X(System.Double)

Defines the x-coordinate of shapes added to the Diagram.

Parameters

value - System.Double

The value for X

Y(System.Double)

Defines the y-coordinate of shapes added to the Diagram.

Parameters

value - System.Double

The value for Y

In this article
Not finding the help you need?