語言

Rect.Inset 方法

定義

多載

名稱 Description
Inset(Insets)

在所有邊長處嵌入矩形,由 的 insets尺寸所指定。

Inset(Int32, Int32)

將矩形內縮為 (dx,dy)。

Inset(Int32, Int32, Int32, Int32)

在長方形內嵌由內套指定的四面。

Inset(Insets)

在所有邊長處嵌入矩形,由 的 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

參數

insets
Insets

插入的正方形。

屬性

備註

在所有邊長處嵌入矩形,由 的 insets尺寸所指定。

Java 文件 android.graphics.Rect.inset(android.graphics.Insets)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Inset(Int32, Int32)

將矩形內縮為 (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

參數

dx
Int32

從矩形的左(右)中加減的金額

dy
Int32

從矩形頂部(底部)加減的金額

屬性

備註

將矩形內縮為 (dx,dy)。 若 dx 為正,則邊向內移動,使矩形變窄。 如果 dx 為負,則邊會向外移動,使矩形變寬。 dy、top和bottom也是如此。

Java 文件 android.graphics.Rect.inset(int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Inset(Int32, Int32, Int32, Int32)

在長方形內嵌由內套指定的四面。

[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

參數

left
Int32

從矩形左側加的金額

top
Int32

從矩形頂端加的金額

right
Int32

從矩形右側減去的金額

bottom
Int32

從矩形底部減去的金額

屬性

備註

在長方形內嵌由內套指定的四面。

Java 文件 android.graphics.Rect.inset(int, int, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於