Class Shape
Defines the behavior of shape.
Inheritance
System.Object
Shape
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class Shape : DiagramObject, IDiagramObject, ICloneable
Constructors
Shape()
Initializes a new instance of the Shape.
Declaration
public Shape()
Shape(Shape)
Creates a new instance of the Shape from the given Shape.
Declaration
public Shape(Shape src)
Parameters
Type | Name | Description |
---|---|---|
Shape | src |
Properties
Type
Gets or sets the type of node shape.
Declaration
public NodeShapes Type { get; set; }
Property Value
Type |
---|
NodeShapes |
Examples
Node node = new Node()
{
// Position of the node
OffsetX = 250,
OffsetY = 250,
// Size of the node
Width = 100,
Height = 100,
Style = new ShapeStyle() { Fill = "#6495ED", StrokeColor = "white" },
Shape = new BasicShape() { Shape = NodeBasicShapes.Plus, Type = NodeShapes.Basic },
};
Methods
Clone()
Creates a new Shape that is a copy of the current Shape.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | it returns shape |
Overrides
Implements
System.ICloneable