SizeF(Single, Single) Constructor

Definition

Create a new immutable SizeF instance.

[Android.Runtime.Register(".ctor", "(FF)V", "")]
public SizeF (float width, float height);
[<Android.Runtime.Register(".ctor", "(FF)V", "")>]
new Android.Util.SizeF : single * single -> Android.Util.SizeF

Parameters

width
Single

The width of the size

height
Single

The height of the size

Attributes

Exceptions

if either width or height was not finite.

Remarks

Create a new immutable SizeF instance.

Both the width and the height must be a finite number. In particular, NaN and positive/negative infinity are illegal values.

Java documentation for android.util.SizeF.SizeF(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to