Drawable.SetHotspotBounds(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果热点与可绘制边界不同,则设置热点所约束的边界。
[Android.Runtime.Register("setHotspotBounds", "(IIII)V", "GetSetHotspotBounds_IIIIHandler")]
public virtual void SetHotspotBounds(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setHotspotBounds", "(IIII)V", "GetSetHotspotBounds_IIIIHandler")>]
abstract member SetHotspotBounds : int * int * int * int -> unit
override this.SetHotspotBounds : int * int * int * int -> unit
参数
- left
- Int32
左边界的位置(以像素为单位)
- top
- Int32
顶部边界的位置(以像素为单位)
- right
- Int32
右绑定位置(以像素为单位)
- bottom
- Int32
下限位置(以像素为单位)
- 属性
注解
如果热点与可绘制边界不同,则设置热点所约束的边界。
适用于 . 的 android.graphics.drawable.Drawable.setHotspotBounds(int, int, int, int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。