DioDocs for PDF
Truncate メソッド

DS.Documents.Imaging アセンブリ > GrapeCity.Documents.Text 名前空間 > TextLayout クラス : Truncate メソッド
The text granularity used when trimming the last line of text.
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 lastLineTrimming is not TrimmingGranularity.None, ellipsis (specified by EllipsisCharCode) is appended to the last line to indicate that it was trimmed.

シンタックス
'宣言
 
Public Function Truncate( _
   Optional ByVal lastLineTrimming As TrimmingGranularity _
) As System.Boolean
public System.bool Truncate( 
   TrimmingGranularity lastLineTrimming
)

パラメータ

lastLineTrimming
The text granularity used when trimming the last line of text.

戻り値の型

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.
解説
Note that if there is only one line, and it does not fit into the available height, it is not removed, and this method returns true.
参照

TextLayout クラス
TextLayout メンバ