Surface.SetOrientation(Int32, SurfaceOrientation) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置提供显示器的方向。
[Android.Runtime.Register("setOrientation", "(II)V", "")]
public static void SetOrientation(int display, Android.Views.SurfaceOrientation orientation);
[<Android.Runtime.Register("setOrientation", "(II)V", "")>]
static member SetOrientation : int * Android.Views.SurfaceOrientation -> unit
参数
- display
- Int32
用于显示的 System.Int32 值。
- orientation
- SurfaceOrientation
用于方向的 Android.Views.SurfaceOrientation 值。
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。