Class CurveShape
Represents a curved spline shape.
public sealed class CurveShape : PolygonShape, IOrderedShape
- Inheritance
-
CurveShape
- Implements
- Inherited Members
Constructors
CurveShape()
Initializes a new instance of the CurveShape class.
public CurveShape()
CurveShape(PointF[])
Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.
public CurveShape(PointF[] points)
Parameters
points
PointF[]The points array.
CurveShape(PointF[], bool)
Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.
public CurveShape(PointF[] points, bool isClosed)
Parameters
CurveShape(PointF[], float)
Initializes a new instance of the CurveShape class.
public CurveShape(PointF[] points, float tension)
Parameters
CurveShape(PointF[], float, bool)
Initializes a new instance of the CurveShape class.
public CurveShape(PointF[] points, float tension, bool isClosed)
Parameters
points
PointF[]The points array.
tension
floatThe curve tension.
isClosed
boolif set to
true
the curve is closed.
Properties
Bounds
Gets the object's bounds.
public override RectangleF Bounds { get; }
Property Value
- RectangleF
The object's bounds.
Center
Gets the shape's center.
public override PointF Center { get; }
Property Value
- PointF
The shape's center.
Segments
Gets the shape segments.
public override ShapeSegment[] Segments { get; }
Property Value
- ShapeSegment[]
The shape segments.
Tension
Gets or sets the curve tension.
public float Tension { get; set; }
Property Value
- float
The curve tension.
Methods
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe other object.
Returns
- bool
The equality comparison result.
GetBounds(Matrix)
Gets the object's bounds.
public override RectangleF GetBounds(Matrix matrix)
Parameters
matrix
MatrixThe matrix to apply before bounds will be calculated.
Returns
- RectangleF
The estimated object's bounds.
GetBounds(Matrix, Pen)
Gets the object's bounds.
public override RectangleF GetBounds(Matrix matrix, Pen pen)
Parameters
matrix
MatrixThe matrix to apply before bounds will be calculated.
pen
PenThe pen to use for object. This can influence the object's bounds size.
Returns
- RectangleF
The estimated object's bounds.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
Returns
- int
The hash code.