Class PathShape
Draws a series of connected lines and curves.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class PathShape : Shape, IDiagramObject, ICloneable
Constructors
PathShape()
Initializes a new instance of the Path.
Declaration
public PathShape()
PathShape(PathShape)
Creates a new instance of the Path from the given Path.
Declaration
public PathShape(PathShape src)
Parameters
Type | Name | Description |
---|---|---|
PathShape | src | Path |
Properties
Data
Gets or sets a Geometry that specifies the shape to be drawn.
Declaration
public string Data { get; set; }
Property Value
Type |
---|
System.String |
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 PathShape() { Type=NodeShapes.Path, Data="M540.3643,137.9336L546.7973,159.7016L570.3633,159.7296L550.7723,171.9366L558.9053,194.9966L540.3643,179.4996L521.8223,194.9966L529.9553,171.9366L510.3633,159.7296L533.9313,159.7016L540.3643,137.9336z"},
};
Methods
Clone()
Creates a new path data that is a copy of the current path data.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | it reurns Path |
Overrides
Implements
System.ICloneable