Defines the fluent API for configuring DiagramShapeDefaultsSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TShapeModel
TConnectionModel
Syntax:
public class DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> where TShapeModel : class where TConnectionModel : class
Inheritance: objectDiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Inherited Members
Constructors
DiagramShapeDefaultsSettingsBuilder method.
public DiagramShapeDefaultsSettingsBuilder(DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> container)
Properties
Container
DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel>
Container member.
protected DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> Container { get; }
Methods
Defines accessibility options for shapes.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Accessibility(Action<DiagramShapeDefaultsAccessibilitySettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsAccessibilitySettingsBuilder<TShapeModel, TConnectionModel> for the accessibility setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the center position of the shape. Applicable for the circle shape.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Center(Action<DiagramShapeDefaultsCenterSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsCenterSettingsBuilder<TShapeModel, TConnectionModel> for the center setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the default options for the shape connectors.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> ConnectorDefaults(Action<DiagramShapeDefaultsConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsConnectorDefaultsSettingsBuilder<TShapeModel, TConnectionModel> for the connectordefaults setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Connectors(Action<DiagramShapeDefaultsSettingsConnectorFactory<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsSettingsConnectorFactory<TShapeModel, TConnectionModel> for the connectors setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the default shapes content settings.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Content(Action<DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsContentSettingsBuilder<TShapeModel, TConnectionModel> for the content setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the corner radius of the shape.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> CornerRadius(double value)
The value for CornerRadius
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the shape editable options.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Editable(Action<DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsEditableSettingsBuilder<TShapeModel, TConnectionModel> for the editable setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the shape editable options.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Editable(bool enabled)
Enables or disables the editable option.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsEditableSettingsBuilder<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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Fill(Action<DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsFillSettingsBuilder<TShapeModel, TConnectionModel> for the fill setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Fill(string fill)
The fill.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Defines the default height of shapes in the Diagram.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Height(double value)
The value for Height
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the hover configuration.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Hover(Action<DiagramShapeDefaultsHoverSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsHoverSettingsBuilder<TShapeModel, TConnectionModel> for the hover setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> MinHeight(double value)
The value for MinHeight
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> MinWidth(double value)
The value for MinWidth
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
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 DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Path(string value)
The value for Path
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the radius of the shape. Applicable for the circle shape.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Radius(double value)
The value for Radius
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the rotation of the shape.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Rotation(Action<DiagramShapeDefaultsRotationSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsRotationSettingsBuilder<TShapeModel, TConnectionModel> for the rotation setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Specifies if Diagram shapes can be selected.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Selectable(bool value)
The value for Selectable
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
The path/URL to the shape image. Applicable when the type is set to "image".
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Source(string value)
The value for Source
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the configuration of the border around Diagram shapes.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Stroke(Action<DiagramShapeDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel>> configurator)
The DiagramShapeDefaultsStrokeSettingsBuilder<TShapeModel, TConnectionModel> for the stroke setting.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current instance of DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> .
Specifies the type of the Diagram 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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Type(DiagramShapeType value)
The value for Type
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeBuilder<TShapeModel, TConnectionModel> instance.
Specifies the type of the Workflow Shape type using any of the built-in shape types. 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 DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Type(FlowchartShapeType value)
The value for Type
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettings<TShapeModel, TConnectionModel> instance.
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 DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Type(string value)
The value for Type
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Visual(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
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.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Visual(string handler)
The name of the JavaScript function that will be evaluated.
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the default width of shapes in the Diagram.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Width(double value)
The value for Width
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the x-coordinate of shapes added to the Diagram.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> X(double value)
The value for X
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.
Defines the y-coordinate of shapes added to the Diagram.
public DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> Y(double value)
The value for Y
Returns:DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel>
Returns the current DiagramShapeDefaultsSettingsBuilder<TShapeModel, TConnectionModel> instance.