iOS Guides | Samples

MonoTouch.UIKit.UIImage.AlignmentRectInsets Property

Alignment metadata that provides hints for aligning the UIImage content.


[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[get: MonoTouch.Foundation.Export("alignmentRectInsets")]
[get: MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public virtual UIEdgeInsets AlignmentRectInsets { get; }


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


This property can be used to specify an alignment rectangle that is different than the UIImage's UIImage.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.


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: