Share via


Rect.Inset Method

Definition

Overloads

Inset(Insets)

Insets the rectangle on all sides specified by the dimensions of insets.

Inset(Int32, Int32)

Inset the rectangle by (dx,dy).

Inset(Int32, Int32, Int32, Int32)

Insets the rectangle on all sides specified by the insets.

Inset(Insets)

Insets the rectangle on all sides specified by the dimensions of insets.

[Android.Runtime.Register("inset", "(Landroid/graphics/Insets;)V", "", ApiSince=31)]
public void Inset (Android.Graphics.Insets insets);
[<Android.Runtime.Register("inset", "(Landroid/graphics/Insets;)V", "", ApiSince=31)>]
member this.Inset : Android.Graphics.Insets -> unit

Parameters

insets
Insets

The insets to inset the rect by.

Attributes

Remarks

Insets the rectangle on all sides specified by the dimensions of insets.

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

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

Inset(Int32, Int32)

Inset the rectangle by (dx,dy).

[Android.Runtime.Register("inset", "(II)V", "")]
public void Inset (int dx, int dy);
[<Android.Runtime.Register("inset", "(II)V", "")>]
member this.Inset : int * int -> unit

Parameters

dx
Int32

The amount to add(subtract) from the rectangle's left(right)

dy
Int32

The amount to add(subtract) from the rectangle's top(bottom)

Attributes

Remarks

Inset the rectangle by (dx,dy). If dx is positive, then the sides are moved inwards, making the rectangle narrower. If dx is negative, then the sides are moved outwards, making the rectangle wider. The same holds true for dy and the top and bottom.

Java documentation for android.graphics.Rect.inset(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

Inset(Int32, Int32, Int32, Int32)

Insets the rectangle on all sides specified by the insets.

[Android.Runtime.Register("inset", "(IIII)V", "", ApiSince=31)]
public void Inset (int left, int top, int right, int bottom);
[<Android.Runtime.Register("inset", "(IIII)V", "", ApiSince=31)>]
member this.Inset : int * int * int * int -> unit

Parameters

left
Int32

The amount to add from the rectangle's left

top
Int32

The amount to add from the rectangle's top

right
Int32

The amount to subtract from the rectangle's right

bottom
Int32

The amount to subtract from the rectangle's bottom

Attributes

Remarks

Insets the rectangle on all sides specified by the insets.

Java documentation for android.graphics.Rect.inset(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