Instance Property

bounds

Defines the layout bounds of the receiver's graphical representation in the text coordinate system.

Declaration

iOS, Mac Catalyst, tvOS
@property(nonatomic) CGRect bounds;
macOS
@property NSRect bounds;

Discussion

The bounds rectangle origin is at the current glyph location on the text baseline. The default value is CGRectZero.

See Also

Defining the Contents

contents

Defines the contents for the text attachment.

fileType

Defines the file type of the contents for the text attachment.

image

Image representing the text attachment contents.

fileWrapper

The receiver’s file wrapper.