Struct DrawingRectangle
This structure represents the drawing of a rectangle in screen coordinates.
public struct DrawingRectangle
- Inherited Members
Remarks
None
Constructors
DrawingRectangle(int, int, int, int)
This method represents the constructor that should be used to create the structure.
public DrawingRectangle(int centerX, int centerY, int width, int height)
Parameters
centerX
intThis parameter represents the center horizontal value of the rectangle.
centerY
intThis parameter represents the center vertical value of the rectangle.
width
intThis parameter represents the width of the rectangle.
height
intThis parameter represents the height of the rectangle.
Examples
None
DrawingRectangle(int, int, int, int, DrawingRectangleAnchorReference)
public DrawingRectangle(int anchorPointX, int anchorPointY, int width, int height, DrawingRectangleAnchorReference anchorReference)
Parameters
anchorPointX
intanchorPointY
intwidth
intheight
intanchorReference
DrawingRectangleAnchorReference
Properties
CenterX
This parameter represents the center horizontal value of the rectangle.
public int CenterX { get; }
Property Value
- int
This parameter returns the center horizontal value of the rectangle.
Remarks
None
CenterY
This parameter represents the center vertical value of the rectangle.
public int CenterY { get; }
Property Value
- int
This parameter returns the center vertical value of the rectangle.
Remarks
None
Height
This parameter returns the height of the rectangle.
public int Height { get; }
Property Value
- int
This parameter returns the height of the rectangle.
Remarks
None
MaximumX
public int MaximumX { get; }
Property Value
MaximumY
public int MaximumY { get; }
Property Value
MinimumX
public int MinimumX { get; }
Property Value
MinimumY
public int MinimumY { get; }
Property Value
Width
This parameter returns the width of the rectangle.
public int Width { get; }
Property Value
- int
This parameter returns the width of the rectangle.
Remarks
None
Methods
Equals(object)
This method is an override of the Equals functionality.
public override bool Equals(object obj)
Parameters
obj
object
Returns
Remarks
None
GetHashCode()
This method is an override of the GetHashCode functionality.
public override int GetHashCode()
Returns
Remarks
None
Operators
operator ==(DrawingRectangle, DrawingRectangle)
This method is an override of the == functionality.
public static bool operator ==(DrawingRectangle rectangleF1, DrawingRectangle rectangleF2)
Parameters
rectangleF1
DrawingRectangleThis parameter represents the first DrawingRectangleF to compare.
rectangleF2
DrawingRectangleThis parameter represents the second DrawingRectangleF to compare.
Returns
Remarks
None
operator !=(DrawingRectangle, DrawingRectangle)
This method is an override of the != functionality.
public static bool operator !=(DrawingRectangle rectangleF1, DrawingRectangle rectangleF2)
Parameters
rectangleF1
DrawingRectangleThis parameter represents the first DrawingRectangleF to compare.
rectangleF2
DrawingRectangleThis parameter represents the second DrawingRectangleF to compare.
Returns
Remarks
None