[]
        
(Showing Draft Content)

C1.Blazor.Core.C1Rect

C1Rect Struct

Describes the width, height, and point origin of a rectangle.

Namespace: C1.Blazor.Core
Assembly: C1.Blazor.Core.dll
Syntax
public struct C1Rect

Constructors

Name Description
C1Rect(C1Point, C1Point)

Initializes a C1Rect structure that is exactly large enough to contain the two specified points.

C1Rect(C1Point, C1Size)

Initializes a C1Rect structure based on an origin and size.

C1Rect(double, double, double, double)

Initializes a C1Rect structure that has the specified x-coordinate, y-coordinate, width, and height.

Properties

Name Description
Bottom

Gets the y-axis value of the bottom of the rectangle.

Empty

Gets a special value that represents a rectangle with no position or area.

Height

Gets or sets the height of the rectangle.

IsEmpty

Gets a value that indicates whether the rectangle is the C1Rect.Empty rectangle.

Left

Gets the x-axis value of the left side of the rectangle.

Location

Gets or sets the position of the top-left corner of the rectangle.

Right

Gets the x-axis value of the right side of the rectangle.

Size

Gets or sets the width and height of the rectangle.

Top

Gets the y-axis position of the top of the rectangle.

Width

Gets or sets the width of the rectangle.

X

Gets or sets the x-axis value of the left side of the rectangle.

Y

Gets or sets the y-axis value of the top side of the rectangle.

Methods

Name Description
Contains(C1Point)

Indicates whether the rectangle described by the C1Rect contains the specified point.

Contains(C1Rect)

Indicates whether the rectangle contains the specified rectangle.

Equals(object)

Determines whether the specified object, is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

Inflate(C1Size)

Returns the rectangle that results from expanding the specified rectangle by the specified Size, in all directions.

Inflate(double, double)

Inflates the rectangle that results from expanding the specified rectangle by the specified width and height, in all directions.

Intersect(C1Rect)

Finds the intersection of the rectangle represented by the C1Rect and the rectangle represented by the specified C1Rect, and stores the result as the current C1Rect.

IntersectsWith(C1Rect)

Indicates whether the specified rectangle intersects with the current rectangle.

Offset(C1Rect, double, double)

Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts.

Offset(double, double)

Moves the rectangle by the specified horizontal and vertical amounts.

ToString()

Gets a string representation of C1Rect

Union(C1Point)

Expands the rectangle represented by the current C1Rect exactly enough to contain the specified point.

Union(C1Rect)

Expands the rectangle represented by the current C1Rect exactly enough to contain the specified rectangle.

Union(C1Rect, C1Rect)

Returns a new rectangle exactly enough to contain the specified rectangles.

Operators

Name Description
operator ==(C1Rect, C1Rect)

Compares two C1Rect structures for equality.

operator !=(C1Rect, C1Rect)

Compares two C1Rect structures for inequality.