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()
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class Path : ICloneable
Constructors
Path()
Declaration
Fields
_segments
Declaration
public readonly List<Path.PathSegment> _segments
Field Value
Properties
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
Clone()
Declaration
Returns
| Type |
Description |
| System.Object |
|
Close()
Declaration
CreateEllipsePath(RectangleF)
Declaration
public static Path CreateEllipsePath(RectangleF rectangleF)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
rectangleF |
|
Returns
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
CreateRectanglePath(RectangleF)
Declaration
public static Path CreateRectanglePath(RectangleF rectangle)
Parameters
| Type |
Name |
Description |
| System.Drawing.RectangleF |
rectangle |
|
Returns
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
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
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
CubicTo(PointF, PointF, PointF)
Declaration
public void CubicTo(PointF center1, PointF center2, PointF endPoint)
Parameters
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
GetBounds()
Declaration
public RectangleF GetBounds()
Returns
| Type |
Description |
| System.Drawing.RectangleF |
|
GetFirstPoint()
Declaration
public PointF GetFirstPoint()
Returns
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
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 |
|
Declaration
public void Transform(Transform transform, PointF center)
Parameters
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