PeachDrawing.Text

PeachDrawing.Text.Layout

LineEnd Enum

Why a line ends where it does.

public enum LineEnd

Fields

Soft 0

At a break opportunity the line breaking algorithm allows, because the next word did not fit.

Forced 1

At a forced break: a newline in the text.

Emergency 2

In the middle of a word, because the word is wider than a line and the paragraph allows breaking it.

Last 3

It is the last line, ending at the end of the text; a line that MaxLines cut is this, whatever its natural end was.

Hyphenated 4

Inside a word, at a soft hyphen or a place automatic hyphenation chose, and the line ends with a hyphen: a generated run (see IsGenerated) that is not part of the text.