UIImage.AlignmentRectInsets 属性

定义

提供对齐内容的提示的 UIImage 对齐元数据。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.ThreadSafe]
public virtual UIKit.UIEdgeInsets AlignmentRectInsets { [Foundation.Export("alignmentRectInsets")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.AlignmentRectInsets : UIKit.UIEdgeInsets

属性值

默认值为 , UIEdgeInsets 其值为零。

属性

注解

此属性可用于指定与 的 Size不同的UIImage对齐矩形。 例如,如果图像具有投影效果,则 属性可用于与图像的“主”部分对齐。

这可以从后台线程使用。

适用于