UIInterfaceOrientationMask 列舉
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
值的列舉,指定使用者介面的可用方向。
此列舉支援其成員值的位元組合。
C#
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIInterfaceOrientationMask
type UIInterfaceOrientationMask =
- 繼承
-
UIInterfaceOrientationMask
- 屬性
名稱 | 值 | Description |
---|---|---|
All | 30 | UIViewController 支援所有介面方向。 |
AllButUpsideDown | 26 | UIViewController 支援直向直向以外的所有方向。 |
Landscape | 24 | UIViewController 支援橫向向左和右橫向。 |
LandscapeLeft | 16 | UIViewController 支援橫向向左方向。 |
LandscapeRight | 8 | UIViewController 支援橫向向右方向。 |
Portrait | 2 | 長邊是垂直的。 |
PortraitUpsideDown | 4 | UIViewController 支援上下向直向。 |
UIViewController可能支援多個 UIInterfaceOrientation 。 這個值會從 GetSupportedInterfaceOrientations() 和 SupportedInterfaceOrientationsForWindow(UIWindow) 傳回,指定應用程式支援的方向。
產品 | 版本 |
---|---|
Xamarin iOS SDK | 12 |
- UIInterfaceOrientation
- GetSupportedInterfaceOrientations()
- <xref:UIKit.UIApplication.SupportedInterfaceOrientationsForWindow>