DioDocs for PDF
MeasureString(String,TextFormat,SizeF,TextSplitOptions,Int32) メソッド

DS.Documents.Imaging アセンブリ > GrapeCity.Documents.Drawing 名前空間 > GcGraphics クラス > MeasureString メソッド : MeasureString(String,TextFormat,SizeF,TextSplitOptions,Int32) メソッド
The string to measure.
The text format to use.
The maximum available size for the layout.
The options controlling how to split the text if it does not fit into the specified size.
OUT: The number of chars that fit into the specified size.
Measures a string using a specified GrapeCity.Documents.Text.TextFormat, available layout size and GrapeCity.Documents.Text.TextSplitOptions. Also calculates and returns in an output parameter the number of chars that fit into the specified size.
シンタックス
'宣言
 
Public Overloads Function MeasureString( _
   ByVal text As System.String, _
   ByVal textFormat As TextFormat, _
   ByVal layoutSize As System.Drawing.SizeF, _
   ByVal splitOptions As TextSplitOptions, _
   ByRef fitCharCount As System.Integer _
) As System.Drawing.SizeF
public System.Drawing.SizeF MeasureString( 
   System.string text,
   TextFormat textFormat,
   System.Drawing.SizeF layoutSize,
   TextSplitOptions splitOptions,
   out System.int fitCharCount
)

パラメータ

text
The string to measure.
textFormat
The text format to use.
layoutSize
The maximum available size for the layout.
splitOptions
The options controlling how to split the text if it does not fit into the specified size.
fitCharCount
OUT: The number of chars that fit into the specified size.

戻り値の型

The actual size needed to draw the string.
参照

GcGraphics クラス
GcGraphics メンバ
オーバーロード一覧