Truncate Method (TextLayout)
If a portion of the text content does not fit into the current layout bounds, removes that portion so that the remaining text fits.
If the text is truncated and is not TrimmingGranularity.None, ellipsis (specified by EllipsisCharCode) is appended to the last line to indicate that it was trimmed.
'Declaration
Public Function Truncate( _
Optional ByVal As TrimmingGranularity _
) As System.Boolean
Parameters
- lastLineTrimming
- The text granularity used when trimming the last line of text.
Return Value
true if at least some text remains that fits into the current layout bounds, false if the current layout did not contain any text or all text had to be removed.