Table of Contents

Struct DrawingRectangle

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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 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.

Examples

None

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

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

Parameters

anchorPointX int
anchorPointY int
width int
height int
anchorReference 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

int

MaximumY

public int MaximumY { get; }

Property Value

int

MinimumX

public int MinimumX { get; }

Property Value

int

MinimumY

public int MinimumY { get; }

Property Value

int

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

bool

Remarks

None

GetHashCode()

This method is an override of the GetHashCode functionality.

public override int GetHashCode()

Returns

int

Remarks

None

Operators

operator ==(DrawingRectangle, DrawingRectangle)

This method is an override of the == functionality.

public static bool operator ==(DrawingRectangle rectangleF1, DrawingRectangle rectangleF2)

Parameters

rectangleF1 DrawingRectangle

This parameter represents the first DrawingRectangleF to compare.

rectangleF2 DrawingRectangle

This parameter represents the second DrawingRectangleF to compare.

Returns

bool

Remarks

None

operator !=(DrawingRectangle, DrawingRectangle)

This method is an override of the != functionality.

public static bool operator !=(DrawingRectangle rectangleF1, DrawingRectangle rectangleF2)

Parameters

rectangleF1 DrawingRectangle

This parameter represents the first DrawingRectangleF to compare.

rectangleF2 DrawingRectangle

This parameter represents the second DrawingRectangleF to compare.

Returns

bool

Remarks

None