Page Summary
-
MLKWritingArea defines the screen area where users can draw ink, using width and height properties.
-
Both width and height properties use the same unit as
StrokePointand should match the unit used inInkand related objects. -
MLKWritingAreais initialized with specific width and height values using the designated initializerinitWithWidth:height:. -
The default
initmethod is unavailable and developers should use the designated initializer instead.
MLKWritingArea
@interface MLKWritingArea : NSObjectProperties of the writing area.
The writing area is the area on the screen where the user can draw an ink.
-
Writing area width, in the same units as used in
StrokePoint.Declaration
Objective-C
@property (nonatomic, readonly) float width; -
Writing area height, in the same units as used in
StrokePoint.Declaration
Objective-C
@property (nonatomic, readonly) float height; -
Unavailable. Use
init(width:height:)instead.Declaration
Objective-C
- (nonnull instancetype)init; -
Initializes and returns a
WritingAreawith specified dimensions.The same unit is expected for both dimensions, and must match the unit used in
Inkand related objects.Declaration
Objective-C
- (nonnull instancetype)initWithWidth:(float)width height:(float)height;Parameters
widthWidth of the writing area.
heightHeight of the writing area.