New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Constructors

C#
public DiagramShape()

Properties

Defines accessibility options for the shape.

C#
public DiagramShapeAccessibilitySettings Accessibility { get; set; }

The center point of the shape.

C#
public DiagramShapeCenterSettings Center { get; set; }

Defines default options for all connectors belonging to a given shape.

C#
public DiagramShapeConnectorDefaultsSettings ConnectorDefaults { get; set; }

Defines the connectors available in the shape. A connector is the point in the shape where a connection between this shape and another one can originate from or end.

C#
public List<DiagramShapeConnector> Connectors { get; set; }

Defines the shapes content settings.

C#
public DiagramShapeContentSettings Content { get; set; }

Defines the corner radius of the shape.

C#
public double? CornerRadius { get; set; }

The data item associated with the shape.

C#
public object DataItem { get; set; }

Defines the shape editable options.

C#
public DiagramShapeEditableSettings Editable { get; set; }

Defines the background fill options of the shape.

C#
public DiagramShapeFillSettings Fill { get; set; }

Defines the height of the shape when added to the Diagram.

C#
public double? Height { get; set; }

Defines the hover configuration.

C#
public DiagramShapeHoverSettings Hover { get; set; }

The unique identifier for a Shape. The id value is used to identify shapes in connection configurations. The connection to and from properties usually point to shape id values.

C#
public string Id { get; set; }

Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.

C#
public double? MinHeight { get; set; }

Defines the minimum width the shape should have, that is, it cannot be resized to a value smaller than the given one. See example at shapes.minHeight.

C#
public double? MinWidth { get; set; }

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

C#
public string Path { get; set; }

The radius of circular shapes.

C#
public double? Radius { get; set; }

Specifies a rotation angle for the shape.

C#
public DiagramShapeRotationSettings Rotation { get; set; }

Specifies if the shape can be selected.

C#
public bool? Selectable { get; set; }

The source of the shape image. Applicable when the type is set to "image".

C#
public string Source { get; set; }

Defines the shape border stroke configuration.

C#
public DiagramShapeStrokeSettings Stroke { get; set; }

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. Or common workflow shapes as: Terminator: Start and end points of the workflow.; Process: Standard processing steps or actions.; Decision: Decision points with Yes/No or True/False branches.; Document: Document creation or data output.; PredefinedProcess: Subroutines or predefined operations.; Database:Database operations or data storage.; Delay:Wait periods or time-based operations. or ManualOperation:Manual tasks requiring human intervention..

C#
public string Type { get; set; }
C#
public ClientHandlerDescriptor Visual { get; set; }

Defines the width of the shape when added to the Diagram.

C#
public double? Width { get; set; }

Defines the x-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout.

C#
public double? X { get; set; }

Defines the y-coordinate of the shape when added to the Diagram. Does not take effect if the Diagram is using a pre-defined layout. You can see an example at shapes.x

C#
public double? Y { get; set; }

Methods

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)