Rect.Set 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。