Click or drag to resize

Rectangle Class

Represents a rectangle described by the location and dimensions.
Inheritance Hierarchy
SystemObject
  DotNetBrowser.GeometryRectangle

Namespace:  DotNetBrowser.Geometry
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax
C#
public sealed class Rectangle

The Rectangle type exposes the following members.

Constructors
  NameDescription
Public methodRectangle(Point, Size)
Initializes a new instance of the Rectangle class with the specified origin and size.
Public methodRectangle(Int32, Int32, UInt32, UInt32)
Initializes a new instance of the Rectangle class with the specified parameters.
Top
Properties
  NameDescription
Public propertyIsEmpty
Indicates whether all numeric properties of this Rectangle have values of zero.
Public propertyOrigin
Gets the top-left corner coordinate of the rectangle.
Public propertySize
Gets the rectangle dimensions.
Top
Methods
  NameDescription
Public methodCenter
Calculates the center of this rectangle.
Public methodContains(Point)
Checks whether the rectangle contains the specified point.
Public methodContains(Rectangle)
Checks whether the rectangle contains the specified rectangle.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also