Skip to content

LineBoxTrim enumeration

Trims the layout’s outer line boxes to font metrics: ink such as accents or descenders may paint outside the reported bounds, and interior line spacing is unaffected.

public enum LineBoxTrim
name value description
None 0 No trimming; the line boxes keep their full ascent and descent.
Cap 1 Trims the first line’s top to the cap height.
CapAndBaseline 2 Also trims the last line’s bottom to the baseline.