Instance Method

widthValueTypeForLayer:edge:

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

Declaration

- (NSTextBlockValueType)widthValueTypeForLayer:(NSTextBlockLayer)layer edge:(NSRectEdge)edge;

Parameters

layer

The layer to examine.

edge

The edge of the layer to examine.

Return Value

The value type of the edge of layer. This determines how the value for this edge of layer should be interpreted.

See Also

Getting and setting margins, borders, and padding

- setWidth:type:forLayer:edge:

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

- 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.

NSTextBlockLayer

The following constants specify values used by the properties and methods contentWidthValueType, setWidth:type:forLayer:edge:, setWidth:type:forLayer:, widthForLayer:edge:, and widthValueTypeForLayer:edge: to specify text block layer values.