語言

Rect.Set 方法

定義

多載

名稱 Description
Set(Rect)

將 src 的座標複製到這個矩形中。

Set(Int32, Int32, Int32, Int32)

將矩形的座標設為指定的值。

Set(Rect)

將 src 的座標複製到這個矩形中。

[Android.Runtime.Register("set", "(Landroid/graphics/Rect;)V", "")]
public void Set(Android.Graphics.Rect src);
[<Android.Runtime.Register("set", "(Landroid/graphics/Rect;)V", "")>]
member this.Set : Android.Graphics.Rect -> unit

參數

src
Rect

該矩形的座標被複製到這個矩形中。

屬性

備註

將 src 的座標複製到這個矩形中。

Java 文件 android.graphics.Rect.set(android.graphics.Rect)。

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

適用於

Set(Int32, Int32, Int32, Int32)

將矩形的座標設為指定的值。

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

參數

left
Int32

矩形左側的 X 座標

top
Int32

矩形頂端的Y座標

right
Int32

矩形右側的 X 座標

bottom
Int32

矩形底部的Y座標

屬性

備註

將矩形的座標設為指定的值。 注意:不進行距離檢查,因此由聽眾自行確保左 <=右,上= <下。

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

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

適用於