Class
DiagramShape

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class DiagramShape : DataVizCollectionItemComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseDataVizChildComponentDataVizCollectionItemComponentDiagramShape

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ComponentBase.OnInitializedAsync()ComponentBase.OnParametersSetAsync()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

DiagramShape()

Declaration

cs-api-definition
public DiagramShape()

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?

DataItem

The data item of the shape.

Declaration

cs-api-definition
[Parameter]
public object DataItem { get; set; }

Property Value

object

Height

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

Declaration

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

Property Value

double?

Id

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.

Declaration

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

Property Value

string

MinHeight

Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.

Declaration

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

Property Value

double?

MinWidth

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.

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

Source

The source of 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" - The default option; "circle" - A circle/ellipse or "image" - An image.

Declaration

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

Property Value

DiagramShapeType?

Visual

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

Declaration

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

Property Value

string

Width

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

Declaration

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

Property Value

double?

X

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.

Declaration

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

Property Value

double?

Y

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

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)

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides DataVizChildComponent.Dispose(bool)

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()