Language

NSLineBreakMode Enum

Definition

Specifies how a line of text is wrapped or truncated when it does not fit within its container.

[ObjCRuntime.Native]
public enum NSLineBreakMode
[<ObjCRuntime.Native>]
type NSLineBreakMode = 
Inheritance
NSLineBreakMode
Attributes

Fields

Name Value Description
ByWordWrapping 0

Wraps lines at word boundaries, splitting a word only when it cannot fit on a single line.

CharWrapping 1

Wraps lines at character boundaries, splitting words if necessary.

Clipping 2

Clips text that does not fit, without wrapping to a new line.

TruncatingHead 3

Truncates the beginning of the line, inserting an ellipsis, so the end of the text remains visible.

TruncatingTail 4

Truncates the end of the line, inserting an ellipsis, so the beginning of the text remains visible.

TruncatingMiddle 5

Truncates the middle of the line, inserting an ellipsis, so both the beginning and end of the text remain visible.

Applies to