Back to Website
Show / Hide Table of Contents

Class Path

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()
Namespace: Aurigma.DesignAtoms.Model.Math
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class Path : ICloneable

Constructors

Path()

Declaration
public Path()

Fields

_segments

Declaration
public readonly List<Path.PathSegment> _segments
Field Value
Type Description
System.Collections.Generic.List<Path.PathSegment>

Properties

IsEmpty

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
System.Boolean

Methods

Clone()

Declaration
public object Clone()
Returns
Type Description
System.Object

Close()

Declaration
public void Close()

CreateEllipsePath(RectangleF)

Declaration
public static Path CreateEllipsePath(RectangleF rectangleF)
Parameters
Type Name Description
System.Drawing.RectangleF rectangleF
Returns
Type Description
Path

CreateEllipsePath(Single, Single, Single, Single)

Declaration
public static Path CreateEllipsePath(float x, float y, float width, float height)
Parameters
Type Name Description
System.Single x
System.Single y
System.Single width
System.Single height
Returns
Type Description
Path

CreateRectanglePath(RectangleF)

Declaration
public static Path CreateRectanglePath(RectangleF rectangle)
Parameters
Type Name Description
System.Drawing.RectangleF rectangle
Returns
Type Description
Path

CreateRectanglePath(Single, Single, Single, Single)

Declaration
public static Path CreateRectanglePath(float x, float y, float width, float height)
Parameters
Type Name Description
System.Single x
System.Single y
System.Single width
System.Single height
Returns
Type Description
Path

CreateRoundedRectanglePath(RectangleF, SizeF[])

Declaration
public static Path CreateRoundedRectanglePath(RectangleF rectangle, SizeF[] radiuses)
Parameters
Type Name Description
System.Drawing.RectangleF rectangle
System.Drawing.SizeF[] radiuses
Returns
Type Description
Path

CreateRoundedRectanglePath(Single, Single, Single, Single, SizeF[])

Declaration
public static Path CreateRoundedRectanglePath(float x, float y, float width, float height, SizeF[] radiuses)
Parameters
Type Name Description
System.Single x
System.Single y
System.Single width
System.Single height
System.Drawing.SizeF[] radiuses
Returns
Type Description
Path

CubicTo(PointF, PointF, PointF)

Declaration
public void CubicTo(PointF center1, PointF center2, PointF endPoint)
Parameters
Type Name Description
PointF center1
PointF center2
PointF endPoint

CubicTo(Single, Single, Single, Single, Single, Single)

Declaration
public void CubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y)
Parameters
Type Name Description
System.Single cx1
System.Single cy1
System.Single cx2
System.Single cy2
System.Single x
System.Single y

Equals(Path, Path, Double)

Declaration
public static bool Equals(Path a, Path b, double tolerance = 0.0001)
Parameters
Type Name Description
Path a
Path b
System.Double tolerance
Returns
Type Description
System.Boolean

Equals(Path, Double)

Declaration
public bool Equals(Path obj, double tolerance = 0.0001)
Parameters
Type Name Description
Path obj
System.Double tolerance
Returns
Type Description
System.Boolean

FromSvgString(String)

Declaration
public static Path FromSvgString(string svg)
Parameters
Type Name Description
System.String svg
Returns
Type Description
Path

GetBounds()

Declaration
public RectangleF GetBounds()
Returns
Type Description
System.Drawing.RectangleF

GetFirstPoint()

Declaration
public PointF GetFirstPoint()
Returns
Type Description
PointF

LineTo(PointF)

Declaration
public void LineTo(PointF point)
Parameters
Type Name Description
PointF point

LineTo(Single, Single)

Declaration
public void LineTo(float x, float y)
Parameters
Type Name Description
System.Single x
System.Single y

MoveTo(PointF)

Declaration
public void MoveTo(PointF point)
Parameters
Type Name Description
PointF point

MoveTo(Single, Single)

Declaration
public void MoveTo(float x, float y)
Parameters
Type Name Description
System.Single x
System.Single y

QuadraticTo(PointF, PointF)

Declaration
public void QuadraticTo(PointF center, PointF endPoint)
Parameters
Type Name Description
PointF center
PointF endPoint

QuadraticTo(Single, Single, Single, Single)

Declaration
public void QuadraticTo(float cx, float cy, float x, float y)
Parameters
Type Name Description
System.Single cx
System.Single cy
System.Single x
System.Single y

RotateAt(Double, PointF)

Declaration
public void RotateAt(double angle, PointF center)
Parameters
Type Name Description
System.Double angle
PointF center

Scale(Double, Double)

Declaration
public void Scale(double scaleX, double scaleY)
Parameters
Type Name Description
System.Double scaleX
System.Double scaleY

ToSvgString()

Declaration
public string ToSvgString()
Returns
Type Description
System.String

Transform(Transform, PointF)

Declaration
public void Transform(Transform transform, PointF center)
Parameters
Type Name Description
Transform transform
PointF center

Translate(Double, Double)

Declaration
public void Translate(double x, double y)
Parameters
Type Name Description
System.Double x
System.Double y

Events

PathChanged

Declaration
public event EventHandler PathChanged
Event Type
Type Description
System.EventHandler

Implements

System.ICloneable

Extension Methods

PathExtensionMethods.ToAdvancedPath(Path)
PathExtensionMethods.ToGraphicsPath(Path)
PathExtensionMethods.GetBounds(Path)
PathExtensionMethods.CalculateBounds(Path)
PathExtensionMethods.IsRectangular(Path, Double)
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback