ClassDiagramShape
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class DiagramShape : DataVizCollectionItemComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseDataVizChildComponentDataVizCollectionItemComponentDiagramShape
Implements:
Inherited Members
Constructors
DiagramShape()
Declaration
public DiagramShape()
Properties
ChildContent
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
CornerRadius
Defines the shape corner radius.
Declaration
[Parameter]
public double? CornerRadius { get; set; }
Property Value
DataItem
The data item of the shape.
Declaration
[Parameter]
public object DataItem { get; set; }
Property Value
Height
Defines the height of the shape when added to the Diagram.
Declaration
[Parameter]
public double? Height { get; set; }
Property Value
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.
MinHeight
Defines the minimum height the shape should have, that is, it cannot be resized to a value smaller than the given one.
Declaration
[Parameter]
public double? MinHeight { get; set; }
Property Value
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
[Parameter]
public double? MinWidth { get; set; }
Property Value
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.").
Source
The source of the shape image. Applicable when the type is set to "image".
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
[Parameter]
public DiagramShapeType? Type { get; set; }
Property Value
Visual
A function returning a visual element to render for this shape. For more information, refer to visual.
Width
Defines the width of the shape when added to the Diagram.
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.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides