Class PieShape
Represents a pie shape.
public class PieShape : EllipseShape
- Inheritance
-
PieShape
- Derived
- Inherited Members
Constructors
PieShape()
Initializes a new instance of the PieShape class.
public PieShape()
PieShape(RectangleF, float, float)
Initializes a new instance of the PieShape class.
public PieShape(RectangleF rectangle, float startAngle, float sweepAngle)
Parameters
rectangle
RectangleFThe rectangle.
startAngle
floatThe start angle.
sweepAngle
floatThe sweep angle.
Properties
Segments
Gets the shape segments.
public override ShapeSegment[] Segments { get; }
Property Value
- ShapeSegment[]
The shape segments.
StartAngle
Gets or sets the start angle.
public float StartAngle { get; set; }
Property Value
- float
The start angle.
SweepAngle
Gets or sets the sweep angle.
public float SweepAngle { get; set; }
Property Value
- float
The sweep angle.
Methods
Equals(PieShape)
Check if objects are equal.
protected bool Equals(PieShape other)
Parameters
other
PieShapeThe other object.
Returns
- bool
The equality comparison result.
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe other object.
Returns
- bool
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
Returns
- int
The hash code.