Kendo UI DiagramShape class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShape<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShape<TShapeModel, TConnectionModel>
Inherited Members
Constructors
public DiagramShape()
Properties
Accessibility
DiagramShapeAccessibilitySettings<TShapeModel, TConnectionModel>
Defines accessibility options for the shape.
public DiagramShapeAccessibilitySettings<TShapeModel, TConnectionModel> Accessibility { get; }
Center
DiagramShapeCenterSettings<TShapeModel, TConnectionModel>
The center point of the shape.
public DiagramShapeCenterSettings<TShapeModel, TConnectionModel> Center { get; }
ConnectorDefaults
DiagramShapeConnectorDefaultsSettings<TShapeModel, TConnectionModel>
Defines default options for all connectors belonging to a given shape.
public DiagramShapeConnectorDefaultsSettings<TShapeModel, TConnectionModel> ConnectorDefaults { get; }
Connectors
List<DiagramShapeConnector<TShapeModel, TConnectionModel>>
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.
public List<DiagramShapeConnector<TShapeModel, TConnectionModel>> Connectors { get; set; }
Content
DiagramShapeContentSettings<TShapeModel, TConnectionModel>
Defines the shapes content settings.
public DiagramShapeContentSettings<TShapeModel, TConnectionModel> Content { get; }
Defines the corner radius of the shape.
public double? CornerRadius { get; set; }
Diagram member.
public Diagram<TShapeModel, TConnectionModel> Diagram { get; set; }
Editable
DiagramShapeEditableSettings<TShapeModel, TConnectionModel>
Defines the shape editable options.
public DiagramShapeEditableSettings<TShapeModel, TConnectionModel> Editable { get; }
Fill
DiagramShapeFillSettings<TShapeModel, TConnectionModel>
Defines the background fill options of the shape.
public DiagramShapeFillSettings<TShapeModel, TConnectionModel> Fill { get; }
Defines the height of the shape when added to the Diagram.
public double? Height { get; set; }
Hover
DiagramShapeHoverSettings<TShapeModel, TConnectionModel>
Defines the hover configuration.
public DiagramShapeHoverSettings<TShapeModel, TConnectionModel> Hover { get; }
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.
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.
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.
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.").
public string Path { get; set; }
Rotation
DiagramShapeRotationSettings<TShapeModel, TConnectionModel>
Specifies a rotation angle for the shape.
public DiagramShapeRotationSettings<TShapeModel, TConnectionModel> Rotation { get; }
Specifies if the shape can be selected.
public bool? Selectable { get; set; }
The source of the shape image. Applicable when the type is set to "image".
public string Source { get; set; }
Stroke
DiagramShapeStrokeSettings<TShapeModel, TConnectionModel>
Defines the shape border stroke configuration.
public DiagramShapeStrokeSettings<TShapeModel, TConnectionModel> Stroke { get; }
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..
public string Type { get; set; }
A function returning a visual element to render for this shape.The following primitives can be used to construct a composite visual: Circle; Rectangle; Path; Line; Polyline; TextBlock; Image or Layout.
public ClientHandlerDescriptor Visual { get; set; }
Defines the width of the shape when added to the Diagram.
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.
public double? X { get; set; }
Methods
Serialize current instance to Dictionary
protected virtual Dictionary<string, object> SerializeSettings()