UIInterfaceOrientationExtensions.IsPortrait(UIInterfaceOrientation) 方法

定义

确定方向是否为纵向方向之一。

public static bool IsPortrait (this UIKit.UIInterfaceOrientation orientation);
static member IsPortrait : UIKit.UIInterfaceOrientation -> bool

参数

orientation
UIInterfaceOrientation

要操作的值。

返回

如果这是纵向方向,则为 true。

适用于