UIInterfaceOrientationExtensions.IsPortrait(UIInterfaceOrientation) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定方向是否为纵向方向之一。
public static bool IsPortrait (this UIKit.UIInterfaceOrientation orientation);
static member IsPortrait : UIKit.UIInterfaceOrientation -> bool
参数
- orientation
- UIInterfaceOrientation
要操作的值。
返回
如果这是纵向方向,则为 true。