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

Int32
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

Int32
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

Int32
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

Int32
This parameter returns the height of the rectangle.

Remarks:

None

MinimumX

public int MinimumX { get; }

Property Value

Int32

MinimumY

public int MinimumY { get; }

Property Value

Int32

MaximumX

public int MaximumX { get; }

Property Value

Int32

MaximumY

public int MaximumY { get; }

Property Value

Int32

Constructors

DrawingRectangle(Int32, Int32, Int32, Int32)

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

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

Parameters

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

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

width Int32
This parameter represents the width of the rectangle.

height Int32
This parameter represents the height of the rectangle.

DrawingRectangle(Int32, Int32, Int32, Int32, DrawingRectangleAnchorReference)

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

Parameters

anchorPointX Int32

anchorPointY Int32

width Int32

height Int32

anchorReference DrawingRectangleAnchorReference

Methods

Equals(Object)

This method is an override of the Equals functionality.

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Remarks:

None

GetHashCode()

This method is an override of the GetHashCode functionality.

int GetHashCode()

Returns

Int32

Remarks:

None