Xamarin.Forms.Size Members

The members of Xamarin.Forms.Size are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Creates a new Xamarin.Forms.Size object with width and height.

Public Fields

static readonly
ZeroSize. The Xamarin.Forms.Size whose values for height and width are 0.0.

Public Properties

Heightdouble. Magnitude along the vertical axis, in platform-specific units.
[read-only]
IsZerobool. Whether the Xamarin.Forms.Size has Size.Height and Size.Width of 0.0.
Widthdouble. Magnitude along the horizontal axis, in platform-defined units.

Public Methods

override
Equals(object) : bool
Whether thisXamarin.Forms.Size is equivalent to obj.
Equals(Size) : bool
Whether thisXamarin.Forms.Size is equivalent to other.
override
GetHashCode() : int
Returns a hash value for the Xamarin.Forms.Size.
override
ToString() : string
Returns a human-readable representation of the Xamarin.Forms.Size.

Public Operators

static
Addition(Size, Size)Returns a new Xamarin.Forms.Size whose Size.Height and Size.Width are the sum of the component's height and width.
static
Equality(Size, Size)Whether two Xamarin.Forms.Sizes have equal values.
static
Inequality(Size, Size)Whether two Xamarin.Forms.Sizes have unequal values.
static
Multiply(Size, double)Scales both Size.Width and Size.Height.
static
Subtraction(Size, Size)Returns a new Xamarin.Forms.Size whose Size.Height and Size.Width are s1's height and width minus the values in s2.
static
Conversion to Xamarin.Forms.Point(Explicit)Returns a new Xamarin.Forms.Point based on a Xamarin.Forms.Size.