iOS Guides | Samples

MonoTouch.UIKit.NSTextAttachment Class

An attachment to a NSAttributedString.

See Also: NSTextAttachment


[MonoTouch.Foundation.Register("NSTextAttachment", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class NSTextAttachment : NSObject, INSCoding, INSTextAttachmentContainer, IUIAccessibilityContentSizeCategoryImageAdjusting, IDisposable

See Also

Related content


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

The members of MonoTouch.UIKit.NSTextAttachment are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.
Creates a new NSTextAttachment with the specified contentData.

Public Properties

BoundsRectangleF. The layout RectangleF of this NSTextAttachment's graphical representation, in the text coordinate system.
ClassHandleIntPtr. The handle for this class.
ContentsNSData. The contents of the text attachment. Modification invalidates the Image property.
FileTypeString. The file type of the Contents.
FileWrapperNSFileWrapper. The file wrapper associated with this NSTextAttachment.
ImageUIImage. A UIImage representing this NSTextAttachment's Contents.

Public Methods

GetAttachmentBounds(NSTextContainer, RectangleF, PointF, UInt32) : RectangleF
The layout bounds of this NSTextAttachment's graphical representation in the text coordinate system.
GetImageForBounds(RectangleF, NSTextContainer, UInt32) : UIImage
The image used to represent the NSTextAttachmentContainer.