Skip to content

TextOverflowMode ​

Controls how text that does not fit inside the available rectangle is truncated. Used by TextRendering.OverflowMode.

ConstantValueDescription
tbAllowPartialChars0Truncate at the available width, allowing the final glyph to be clipped mid-character.
tbDisallowPartialChars1Truncate at the last fully-visible character; no half-glyph at the edge. Used by WaynesTextBox so the caret never falls between glyphs of a surrogate pair.
tbAppendEllipsis2Truncate at the last fully-visible character and append … if any characters were dropped. The default for newly-constructed TextRendering objects.
tbShrinkToFit3Reduce the rendered font size until the entire string fits without truncation. Used by WaynesTimer so its design-time clock glyph scales with the control.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author