Udostępnij za pośrednictwem


Insets.Of Method

Definition

Overloads

Of(Rect)

Return an Insets instance with the appropriate values.

Of(Int32, Int32, Int32, Int32)

Return an Insets instance with the appropriate values.

Of(Rect)

Return an Insets instance with the appropriate values.

[Android.Runtime.Register("of", "(Landroid/graphics/Rect;)Landroid/graphics/Insets;", "", ApiSince=29)]
public static Android.Graphics.Insets Of (Android.Graphics.Rect? r);
[<Android.Runtime.Register("of", "(Landroid/graphics/Rect;)Landroid/graphics/Insets;", "", ApiSince=29)>]
static member Of : Android.Graphics.Rect -> Android.Graphics.Insets

Parameters

r
Rect

the rectangle from which to take the values

Returns

an Insets instance with the appropriate values

Attributes

Remarks

Return an Insets instance with the appropriate values.

Java documentation for android.graphics.Insets.of(android.graphics.Rect).

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

Of(Int32, Int32, Int32, Int32)

Return an Insets instance with the appropriate values.

[Android.Runtime.Register("of", "(IIII)Landroid/graphics/Insets;", "", ApiSince=29)]
public static Android.Graphics.Insets Of (int left, int top, int right, int bottom);
[<Android.Runtime.Register("of", "(IIII)Landroid/graphics/Insets;", "", ApiSince=29)>]
static member Of : int * int * int * int -> Android.Graphics.Insets

Parameters

left
Int32

the left inset

top
Int32

the top inset

right
Int32

the right inset

bottom
Int32

the bottom inset

Returns

Insets instance with the appropriate values

Attributes

Remarks

Return an Insets instance with the appropriate values.

Java documentation for android.graphics.Insets.of(int, int, int, int).

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