UIView.GetUserInterfaceLayoutDirection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetUserInterfaceLayoutDirection(UISemanticContentAttribute, UIUserInterfaceLayoutDirection) |
返回相对于提供的布局方向的指定语义属性的布局方向。 |
GetUserInterfaceLayoutDirection(UISemanticContentAttribute) |
返回指定 |
GetUserInterfaceLayoutDirection(UISemanticContentAttribute, UIUserInterfaceLayoutDirection)
返回相对于提供的布局方向的指定语义属性的布局方向。
[Foundation.Export("userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIUserInterfaceLayoutDirection GetUserInterfaceLayoutDirection (UIKit.UISemanticContentAttribute semanticContentAttribute, UIKit.UIUserInterfaceLayoutDirection layoutDirection);
static member GetUserInterfaceLayoutDirection : UIKit.UISemanticContentAttribute * UIKit.UIUserInterfaceLayoutDirection -> UIKit.UIUserInterfaceLayoutDirection
参数
- semanticContentAttribute
- UISemanticContentAttribute
- layoutDirection
- UIUserInterfaceLayoutDirection
返回
- 属性
适用于
GetUserInterfaceLayoutDirection(UISemanticContentAttribute)
返回指定 attribute
的布局方向。
[Foundation.Export("userInterfaceLayoutDirectionForSemanticContentAttribute:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIUserInterfaceLayoutDirection GetUserInterfaceLayoutDirection (UIKit.UISemanticContentAttribute attribute);
static member GetUserInterfaceLayoutDirection : UIKit.UISemanticContentAttribute -> UIKit.UIUserInterfaceLayoutDirection
参数
- attribute
- UISemanticContentAttribute
返回
- 属性