menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PathShape - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PathShape

    Represents a shape that draws a series of connected lines and curves.

    Inheritance
    System.Object
    DiagramObject
    Shape
    PathShape
    Implements
    IDiagramObject
    System.ICloneable
    Inherited Members
    DiagramObject.GetParent()
    DiagramObject.OnPropertyChanged(String, Object, Object, IDiagramObject)
    Shape.Type
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class PathShape : Shape, IDiagramObject, ICloneable
    Remarks

    This class provides functionality to create and manipulate complex path shapes within a diagram.

    Examples
    Node node = new Node()
    {
        OffsetX = 250,
        OffsetY = 250,
        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.7296L..." }
    };

    Constructors

    PathShape()

    Initializes a new instance of the PathShape class with default values.

    Declaration
    public PathShape()

    PathShape(PathShape)

    Initializes a new instance of the PathShape class by copying the provided path data.

    Declaration
    public PathShape(PathShape src)
    Parameters
    Type Name Description
    PathShape src

    The PathShape to copy the data from.

    Properties

    Data

    Gets or sets the geometry that specifies the shape to be drawn.

    Declaration
    public string Data { get; set; }
    Property Value
    Type Description
    System.String

    A System.String representing the geometry data for the path. The default value is null.

    Examples
    PathShape pathShape = new PathShape()
    {
        Data = "M540.3643,137.9336L546.7973,159.7016L570.3633,159.7296L..."
    };

    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

    A new PathShape that is a copy of this instance.

    Overrides
    Shape.Clone()

    Implements

    IDiagramObject
    System.ICloneable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved