Click or drag to resize

Rectangle Operators and Type Conversions

The Rectangle type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition(Rectangle, Point)
Adds the offset to the specified rectangle, moving its location
Public operatorStatic memberAddition(Rectangle, Size)
Adds the offset to the specified rectangle, moving its location
Public operatorStatic memberDivision(Rectangle, Size)
Divides the specified rectangle by the Width and Height of size
Public operatorStatic memberDivision(Rectangle, Int32)
Divides all X, Y, Width, Height components of the rectangle by a factor factor
Public operatorStatic memberEquality
Compares two rectangles for equality
Public operatorStatic member(RectangleF to Rectangle)
Implicit conversion from a RectangleF to a Rectangle
Public operatorStatic memberInequality
Compares two rectangles for inequality
Public operatorStatic memberMultiply(Rectangle, Size)
Multiplies the specified rectangle by the Width and Height of size
Public operatorStatic memberMultiply(Rectangle, Int32)
Multiplies all X, Y, Width, Height components of the rectangle by a factor
Public operatorStatic memberSubtraction(Rectangle, Point)
Subtracts the offset from the specified rectangle, moving its location
Public operatorStatic memberSubtraction(Rectangle, Size)
Subtracts the offset from the specified rectangle, moving its location
Top
See Also