Instance Method

setWidth:type:forLayer:edge:

Sets the width of a specified edge of a specified layer of the text block.

Declaration

- (void)setWidth:(CGFloat)val type:(NSTextBlockValueType)type forLayer:(NSTextBlockLayer)layer edge:(NSRectEdge)edge;

Parameters

val

The new value for the specified edge width.

type

The type of value being provided. This controls how val is interpreted.

layer

The layer of the text block to modify.

edge

The edge of the layer to modify.

See Also

Getting and setting margins, borders, and padding

- setWidth:type:forLayer:

Sets the width of all edges of a specified layer of the text block.

- widthForLayer:edge:

Returns the width of an edge of a specified layer of the text block.

- widthValueTypeForLayer:edge:

Returns the value type of an edge of a specified layer of the text block.