A Size describes a width and a height in two-dimensional coordinates. The width and height must both be non-negative.
The default constructor produces the Size(0,0).
The two-argument constructor produces the Size(w,h).
this number must not be negative.
this number must not be negative.
Gets or sets the height value of the Size.
Gets or sets the width value of the Size.
Create a copy of this Size, with the same values.
Indicates whether the given size is equal to this Size.
the width.
the height. false otherwise.
boolean
Indicates whether the given Size is equal to the current Size.
The Size to compare to the current Size. false otherwise.
boolean
True if this Size has Width and Height values that are real numbers and not infinity.
boolean
This static method can be used to read in a Size from a string that was produced by Size.stringify.
Modify this Size so that its Width and Height values are the same as the given Size.
the given Size.
Modify this Size with new Width and Height values.
the width.
the height.
This static method can be used to write out a Size as a string that can be read by Size.parse.
string