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

Kendo UI DiagramShapeDefaultsSettings class

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Type Parameters:

TShapeModel

TConnectionModel

Syntax:

C#
public class DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class

Inheritance: objectDiagramShapeDefaultsSettings<TShapeModel, TConnectionModel>

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public DiagramShapeDefaultsSettings()

Properties

Defines accessibility options for shapes.

C#
public DiagramShapeDefaultsAccessibilitySettings<TShapeModel, TConnectionModel> Accessibility { get; }

Center

DiagramShapeDefaultsCenterSettings<TShapeModel, TConnectionModel>

Defines the center position of the shape. Applicable for the circle shape.

C#
public DiagramShapeDefaultsCenterSettings<TShapeModel, TConnectionModel> Center { get; }

Defines the default options for the shape connectors.

C#
public DiagramShapeDefaultsConnectorDefaultsSettings<TShapeModel, TConnectionModel> ConnectorDefaults { get; }

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.

C#
public List<DiagramShapeDefaultsSettingsConnector<TShapeModel, TConnectionModel>> Connectors { get; set; }

Content

DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel>

Defines the default shapes content settings.

C#
public DiagramShapeDefaultsContentSettings<TShapeModel, TConnectionModel> Content { get; }

Defines the corner radius of the shape.

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

Diagram

Diagram<TShapeModel, TConnectionModel>

Diagram member.

C#
public Diagram<TShapeModel, TConnectionModel> Diagram { get; set; }

Editable

DiagramShapeDefaultsEditableSettings<TShapeModel, TConnectionModel>

Defines the shape editable options.

C#
public DiagramShapeDefaultsEditableSettings<TShapeModel, TConnectionModel> Editable { get; }

Fill

DiagramShapeDefaultsFillSettings<TShapeModel, TConnectionModel>

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.

C#
public DiagramShapeDefaultsFillSettings<TShapeModel, TConnectionModel> Fill { get; }

Defines the default height of shapes in the Diagram.

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

Hover

DiagramShapeDefaultsHoverSettings<TShapeModel, TConnectionModel>

Defines the hover configuration.

C#
public DiagramShapeDefaultsHoverSettings<TShapeModel, TConnectionModel> Hover { get; }

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.

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

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.

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; }

Defines the radius of the shape. Applicable for the circle shape.

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

Rotation

DiagramShapeDefaultsRotationSettings<TShapeModel, TConnectionModel>

Defines the rotation of the shape.

C#
public DiagramShapeDefaultsRotationSettings<TShapeModel, TConnectionModel> Rotation { get; }

Specifies if Diagram shapes can be selected.

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

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

C#
public string Source { get; set; }

Stroke

DiagramShapeDefaultsStrokeSettings<TShapeModel, TConnectionModel>

Defines the configuration of the border around Diagram shapes.

C#
public DiagramShapeDefaultsStrokeSettings<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..

C#
public string Type { get; set; }

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.

C#
public ClientHandlerDescriptor Visual { get; set; }

Defines the default width of shapes in the Diagram.

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

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

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

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

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

Methods

Serialize current instance to Dictionary

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>

Serialize current instance to Dictionary

C#
protected virtual Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>