Click or drag to resize

Size Operators and Type Conversions

The Size type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition(Size, Point)
Adds the X and Y value to the Width and Height of a size
Public operatorStatic memberAddition(Size, Size)
Adds the Width and Height values of two sizes together
Public operatorStatic memberAddition(Size, Int32)
Adds a value to the Width and Height of the specified size
Public operatorStatic memberDivision(Size, Size)
Divides the Width and Height of two sizes
Public operatorStatic memberDivision(Size, Int32)
Divides the Width and Height of a size by the specified factor
Public operatorStatic memberEquality
Compares two sizes for equality
Public operatorStatic member(Point to Size)
Explicit conversion from a point to a Size with a Width and Height of the X and Y values of the point, respectively
Public operatorStatic member(SizeF to Size)
Explicit conversion from a SizeF to a Size by truncating values
Public operatorStatic memberInequality
Compares two sizes for inequality
Public operatorStatic memberMultiply(Int32, Size)
Multiplies the Width and Height of a size by the specified factor
Public operatorStatic memberMultiply(Size, Size)
Multiplies the Width and Height of two sizes
Public operatorStatic memberMultiply(Size, Int32)
Multiplies the Width and Height of a size by the specified factor
Public operatorStatic memberMultiply(Size, Single)
Multiplies the Width and Height of a size by the specified floating point factor
Public operatorStatic memberSubtraction(Size, Point)
Subtracts the X and Y value from the Width and Height of a size
Public operatorStatic memberSubtraction(Size, Size)
Subtracts the Width and Height value of one size from another
Public operatorStatic memberSubtraction(Size, Int32)
Subtracts a value from the Width and Height of the specified size
Public operatorStatic memberUnaryNegation
Negates the Width and Height of the specified size value
Top
See Also