Skip to content

DrawingRectangle

Namespace: ThinkGeo.Core

This structure represents the drawing of a rectangle in screen coordinates.

public struct DrawingRectangle

Inheritance objectValueTypeDrawingRectangle

Remarks:

None

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

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

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

MinimumX

Gets or sets the MinimumX.

public int MinimumX { get; }

Property Value

int

MinimumY

Gets or sets the MinimumY.

public int MinimumY { get; }

Property Value

int

MaximumX

Gets or sets the MaximumX.

public int MaximumX { get; }

Property Value

int

MaximumY

Gets or sets the MaximumY.

public int MaximumY { get; }

Property Value

int

Constructors

DrawingRectangle(int, int, int, int)

This method represents the constructor that should be used to create the structure.

DrawingRectangle(int centerX, int centerY, int width, int height)

Parameters

centerX int
This parameter represents the center horizontal value of the rectangle.

centerY int
This parameter represents the center vertical value of the rectangle.

width int
This parameter represents the width of the rectangle.

height int
This parameter represents the height of the rectangle.

DrawingRectangle(int, int, int, int, DrawingRectangleAnchorReference)

Initializes a new instance of the DrawingRectangle class.

DrawingRectangle(int anchorPointX, int anchorPointY, int width, int height, DrawingRectangleAnchorReference anchorReference)

Parameters

anchorPointX int

anchorPointY int

width int

height int

anchorReference DrawingRectangleAnchorReference

Methods

Equals(object)

This method is an override of the Equals functionality.

bool Equals(object obj)

Parameters

obj object

Returns

bool

Remarks:

None

GetHashCode()

This method is an override of the GetHashCode functionality.

int GetHashCode()

Returns

int

Remarks:

None