Upravit

Sdílet prostřednictvím


UIImage.AlignmentRectInsets Property

Definition

Alignment metadata that provides hints for aligning the UIImage content.

[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

Property Value

The default value is an UIEdgeInsets whose values are all zero.

Attributes

Remarks

This property can be used to specify an alignment rectangle that is different than the UIImage's Size. For instance, if an image had a drop-shadow effect, the property could be used to align with the "main" part of the image.

This can be used from a background thread.

Applies to