DioDocs for PDF
MeasureString(String,TextFormat,Nullable<Single>) メソッド

GrapeCity.Documents.Imaging アセンブリ > GrapeCity.Documents.Drawing 名前空間 > GcGraphics クラス > MeasureString メソッド : MeasureString(String,TextFormat,Nullable<Single>) メソッド
The string to measure.
The text format to use.
The width allocated to draw the string, or null to indicate unlimited width.
Measures a string using a specified GrapeCity.Documents.Text.TextFormat.
シンタックス
'宣言
 
Public Overloads Function MeasureString( _
   ByVal text As System.String, _
   ByVal textFormat As TextFormat, _
   Optional ByVal width As System.Nullable(Of Single) _
) As System.Drawing.SizeF
public System.Drawing.SizeF MeasureString( 
   System.string text,
   TextFormat textFormat,
   System.Nullable<float> width
)

パラメータ

text
The string to measure.
textFormat
The text format to use.
width
The width allocated to draw the string, or null to indicate unlimited width.

戻り値の型

The size needed to draw the string.
参照

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