Instance Method

setValue:type:forDimension:

Sets a dimension of the text block.

Declaration

- (void)setValue:(CGFloat)val type:(NSTextBlockValueType)type forDimension:(NSTextBlockDimension)dimension;

Parameters

val

The new value for the dimension.

type

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

dimension

The dimension to set.

See Also

Working with dimensions of content

- valueForDimension:

Returns the value of the specified text block dimension.

- valueTypeForDimension:

Returns the value type of the specified text block dimension.

contentWidth

The width of the text block.

contentWidthValueType

The type of value stored for the text block width.