Size Methods

The Size type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd
Adds the width and height of one Size structure to the width and height of another Size structure.
Public methodStatic memberCeiling
Converts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the next higher integer values.
Public methodEquals
Tests to see whether the specified object is a Size with the same dimensions as this Size.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this Size structure.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodStatic memberRound
Converts the specified SizeF structure to a Size structure by rounding the values of the SizeF structure to the nearest integer values.
Public methodStatic memberSubtract
Subtracts the width and height of one Size structure from the width and height of another Size structure.
Public methodToString
Creates a human-readable string that represents this Size.
(Overrides ValueTypeToString.)
Public methodStatic memberTruncate
Converts the specified SizeF structure to a Size structure by truncating the values of the SizeF structure to the next lower integer values.
See Also