Class RectangleShape
Represents a rectangular shape.
public class RectangleShape : RectangleProjectedShape
- Inheritance
-
RectangleShape
- Derived
- Inherited Members
Constructors
RectangleShape()
Initializes a new instance of the RectangleShape class.
public RectangleShape()
RectangleShape(RectangleF)
Initializes a new instance of the RectangleShape class.
public RectangleShape(RectangleF rectangle)
Parameters
rectangle
RectangleFThe rectangle.
Properties
Segments
Gets the shape segments.
public override ShapeSegment[] Segments { get; }
Property Value
- ShapeSegment[]
The shape segments.
Methods
Equals(RectangleShape)
Check if objects are equal.
protected bool Equals(RectangleShape other)
Parameters
other
RectangleShapeThe 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.