Share via


UIView.GetUserInterfaceLayoutDirection 方法

定义

重载

GetUserInterfaceLayoutDirection(UISemanticContentAttribute, UIUserInterfaceLayoutDirection)

返回相对于提供的布局方向的指定语义属性的布局方向。

GetUserInterfaceLayoutDirection(UISemanticContentAttribute)

返回指定 attribute的布局方向。

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

返回

属性

适用于

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

参数

返回

属性

适用于