Table of Contents

Class Rectangle

Namespace
DotNetBrowser.Geometry
Assembly
DotNetBrowser.dll

Represents a rectangle described by the location and dimensions.

public sealed class Rectangle
Inheritance
Rectangle
Inherited Members

Constructors

Rectangle(Point, Size)

Initializes a new instance of the Rectangle class with the specified origin and size.

Rectangle(int, int, uint, uint)

Initializes a new instance of the Rectangle class with the specified parameters.

Properties

IsEmpty

Indicates whether all numeric properties of this Rectangle have values of zero.

Origin

Gets the top-left corner coordinate of the rectangle.

Size

Gets the rectangle dimensions.

Methods

Center()

Calculates the center of this rectangle.

Contains(Point)

Checks whether the rectangle contains the specified point.

Contains(Rectangle)

Checks whether the rectangle contains the specified rectangle.

Equals(object)
GetHashCode()
ToString()