Class Shape
The shape. A continuous set of points connected using a specific rule.
public abstract class Shape : ObjectWithBounds
- Inheritance
-
Shape
- Derived
- Inherited Members
Constructors
Shape()
protected Shape()
Properties
Center
Gets the shape's center.
public abstract PointF Center { get; }
Property Value
- PointF
The shape's center.
HasSegments
Gets a value indicating whether shape has segments.
public abstract bool HasSegments { get; }
Property Value
- bool
True
if shape has segments; otherwise,false
.
Segments
Gets the shape segments.
public abstract ShapeSegment[] Segments { get; }
Property Value
- ShapeSegment[]
The shape segments.
Methods
Equals(Shape)
Check if objects are equal.
protected bool Equals(Shape other)
Parameters
other
ShapeThe 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.