Click or drag to resize

Size Methods

The Size type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns the absolute width and height of the specified size
Public methodStatic memberCeiling
Converts a floating point size to an integral size by rounding the width and height to the next integral value.
Public methodContains(Point)
Gets a value indicating that the specified point is within the Width and Height of this size
Public methodContains(Int32, Int32)
Gets a value indicating that the specified x and y values are within the Width and Height of this size
Public methodEquals(Object)
Compares this size to the specified obj
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Size)
Compares this size to the other size
Public methodFitTo
Fits this size to the specified constraint, keeping the aspect
Public methodGetHashCode
Gets the hash code for this Size
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberMax
Returns the maximum width and height of two sizes
Public methodStatic memberMin
Returns the minimum width and height of two sizes
Public methodStatic memberRound
Converts a floating point size to an integral size by rounding the width and height
Public methodToString
Converts this Size struct to a string
(Overrides ValueTypeToString.)
Public methodStatic memberTruncate
Converts a floating point size to an integral size by truncating the width and height
Top
See Also