New to Telerik UI for BlazorStart a free 30-day trial

Definition

Constructors

C#
public DiagramShape()

Properties

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

Defines the shape corner radius.

C#
[Parameter]
public double? CornerRadius { get; set; }

The data item of the shape.

C#
[Parameter]
public object DataItem { get; set; }

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

C#
[Parameter]
public double? Height { 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#
[Parameter]
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#
[Parameter]
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#
[Parameter]
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#
[Parameter]
public string Path { get; set; }

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

C#
[Parameter]
public string Source { get; set; }

Specifies the type of the Shape using any of the built-in shape type. "rectangle" - The default option; "circle" - A circle/ellipse or "image" - An image.

C#
[Parameter]
public DiagramShapeType? Type { get; set; }

A function returning a visual element to render for this shape. For more information, refer to visual.

C#
[Parameter]
public string Visual { get; set; }

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

C#
[Parameter]
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#
[Parameter]
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#
[Parameter]
public double? Y { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: DataVizChildComponent.Dispose(bool)

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override void OnInitialized()

Overrides: DataVizChildComponent.OnInitialized()

C#
protected override void OnParametersSet()

Overrides: ComponentBase.OnParametersSet()