Class
DiagramShapeDefaults

Telerik UI DiagramShapeDefaults.

Definition

Constructors

DiagramShapeDefaults()

Declaration

cs-api-definition
public DiagramShapeDefaults()

Properties

ChildContent

Declaration

cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

CornerRadius

Defines the shape corner radius.

Declaration

cs-api-definition
[Parameter]
public double? CornerRadius { get; set; }

Property Value

double?

Height

Defines the default height of shapes in the Diagram.

Declaration

cs-api-definition
[Parameter]
public double? Height { get; set; }

Property Value

double?

MinHeight

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.

Declaration

cs-api-definition
[Parameter]
public double? MinHeight { get; set; }

Property Value

double?

MinWidth

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.

Declaration

cs-api-definition
[Parameter]
public double? MinWidth { get; set; }

Property Value

double?

Path

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

Declaration

cs-api-definition
[Parameter]
public string Path { get; set; }

Property Value

string

Selectable

Specifies if Diagram shapes can be selected.

Declaration

cs-api-definition
[Parameter]
public bool? Selectable { get; set; }

Property Value

bool?

Source

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

Declaration

cs-api-definition
[Parameter]
public string Source { get; set; }

Property Value

string

Type

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.

Declaration

cs-api-definition
[Parameter]
public DiagramShapeType? Type { get; set; }

Property Value

DiagramShapeType?

Visual

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.

Declaration

cs-api-definition
[Parameter]
public string Visual { get; set; }

Property Value

string

Width

Defines the default width of shapes in the Diagram.

Declaration

cs-api-definition
[Parameter]
public double? Width { get; set; }

Property Value

double?

X

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

Declaration

cs-api-definition
[Parameter]
public double? X { get; set; }

Property Value

double?

Y

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

Declaration

cs-api-definition
[Parameter]
public double? Y { get; set; }

Property Value

double?

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides ComponentBase.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizChildComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

Serialize()

Declaration

cs-api-definition
public Dictionary<string, object> Serialize()

Returns

Dictionary<string, object>