Contact us

Applies to: Customer's Canvas On-Premises; Design Atoms .NET 7.4

Skip to main content

Class Path

Namespace: Aurigma.DesignAtoms.Model.Math

Assembly: Aurigma.DesignAtoms.Model.dll

Syntax
public class Path : ICloneable

Inheritance: System.Object -> Path

Implements​

  • System.ICloneable

Inherited Members​

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Constructors​

Path​

public Path()

Properties​

IsEmpty​

public bool IsEmpty { get; }

Methods​

GetBounds​

public RectangleF GetBounds()

Returns​

System.Drawing.RectangleF

Clone​

public object Clone()

Returns​

System.Object

Close​

public void Close()

MoveTo​

public void MoveTo(float x, float y)

Parameters​

TypeNameDescription
System.Singlex
System.Singley

MoveTo​

public void MoveTo(PointF point)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.PointFpoint

LineTo​

public void LineTo(float x, float y)

Parameters​

TypeNameDescription
System.Singlex
System.Singley

LineTo​

public void LineTo(PointF point)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.PointFpoint

QuadraticTo​

public void QuadraticTo(float cx, float cy, float x, float y)

Parameters​

TypeNameDescription
System.Singlecx
System.Singlecy
System.Singlex
System.Singley

QuadraticTo​

public void QuadraticTo(PointF center, PointF endPoint)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.PointFcenter
Aurigma.DesignAtoms.Model.Math.PointFendPoint

CubicTo​

public void CubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y)

Parameters​

TypeNameDescription
System.Singlecx1
System.Singlecy1
System.Singlecx2
System.Singlecy2
System.Singlex
System.Singley

CubicTo​

public void CubicTo(PointF center1, PointF center2, PointF endPoint)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.PointFcenter1
Aurigma.DesignAtoms.Model.Math.PointFcenter2
Aurigma.DesignAtoms.Model.Math.PointFendPoint

Equals​

public bool Equals(Path obj, double tolerance = 0.0001)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Pathobj
System.Doubletolerance

Returns​

System.Boolean

Equals​

public static bool Equals(Path a, Path b, double tolerance = 0.0001)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Patha
Aurigma.DesignAtoms.Model.Math.Pathb
System.Doubletolerance

Returns​

System.Boolean

RotateAt​

public void RotateAt(double angle, PointF center)

Parameters​

TypeNameDescription
System.Doubleangle
Aurigma.DesignAtoms.Model.Math.PointFcenter

Scale​

public void Scale(double scaleX, double scaleY)

Parameters​

TypeNameDescription
System.DoublescaleX
System.DoublescaleY

Translate​

public void Translate(double x, double y)

Parameters​

TypeNameDescription
System.Doublex
System.Doubley

Transform​

public void Transform(Transform transform, PointF center)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Transformtransform
Aurigma.DesignAtoms.Model.Math.PointFcenter

GetFirstPoint​

public PointF GetFirstPoint()

Returns​

Aurigma.DesignAtoms.Model.Math.PointF

FromSvgString​

public static Path FromSvgString(string svg)

Parameters​

TypeNameDescription
System.Stringsvg

Returns​

Aurigma.DesignAtoms.Model.Math.Path

ToSvgString​

public string ToSvgString()

Returns​

System.String

CreateEllipsePath​

public static Path CreateEllipsePath(float x, float y, float width, float height)

Parameters​

TypeNameDescription
System.Singlex
System.Singley
System.Singlewidth
System.Singleheight

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateEllipsePath​

public static Path CreateEllipsePath(RectangleF rectangleF)

Parameters​

TypeNameDescription
System.Drawing.RectangleFrectangleF

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateRectanglePath​

public static Path CreateRectanglePath(float x, float y, float width, float height)

Parameters​

TypeNameDescription
System.Singlex
System.Singley
System.Singlewidth
System.Singleheight

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateRectanglePath​

public static Path CreateRectanglePath(RectangleF rectangle)

Parameters​

TypeNameDescription
System.Drawing.RectangleFrectangle

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateRoundedRectanglePath​

public static Path CreateRoundedRectanglePath(RectangleF rectangle, SizeF[] radiuses)

Parameters​

TypeNameDescription
System.Drawing.RectangleFrectangle
System.Drawing.SizeF[]radiuses

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateRoundedRectanglePath​

public static Path CreateRoundedRectanglePath(float x, float y, float width, float height, SizeF[] radiuses)

Parameters​

TypeNameDescription
System.Singlex
System.Singley
System.Singlewidth
System.Singleheight
System.Drawing.SizeF[]radiuses

Returns​

Aurigma.DesignAtoms.Model.Math.Path

Fields​

_segments​

public readonly List<Path.PathSegment> _segments

Events​

PathChanged​

public event EventHandler PathChanged
Was this page helpful?