FlexReport for WinForms
DrawOrMeasure メソッド (C1RichText)


C1.Win.Document.10 アセンブリ > C1.Win.Document.Util 名前空間 > C1RichText クラス : DrawOrMeasure メソッド
テキストが描画される Graphics オブジェクト。測定のみを行う場合は null に設定できます。
RTF テキストの測定に使用される Graphics オブジェクト。
テキストの範囲(ツイップ単位)。幅または高さが double.PositiveInfinite として指定された場合は、この次元が無限であることを意味します。
テキスト範囲の最初の文字のインデックス。
テキスト範囲の長さ。このパラメータが 0 以下の場合は、startIndex からすべてのテキストが計算されます。
テキストのみを測定するかどうかを示します。
RTF テキストを描画または測定します。
シンタックス
'宣言
 
Public Function DrawOrMeasure( _
   ByVal drawGraphics As System.Drawing.Graphics, _
   ByVal measureGraphics As System.Drawing.Graphics, _
   ByVal boundsRectTw As Rect, _
   ByVal startIndex As System.Integer, _
   ByVal length As System.Integer, _
   ByVal measureOnly As System.Boolean _
) As C1RichText.MeasureInfo
'使用法
 
Dim instance As C1RichText
Dim drawGraphics As System.Drawing.Graphics
Dim measureGraphics As System.Drawing.Graphics
Dim boundsRectTw As Rect
Dim startIndex As System.Integer
Dim length As System.Integer
Dim measureOnly As System.Boolean
Dim value As C1RichText.MeasureInfo
 
value = instance.DrawOrMeasure(drawGraphics, measureGraphics, boundsRectTw, startIndex, length, measureOnly)
public C1RichText.MeasureInfo DrawOrMeasure( 
   System.Drawing.Graphics drawGraphics,
   System.Drawing.Graphics measureGraphics,
   Rect boundsRectTw,
   System.int startIndex,
   System.int length,
   System.bool measureOnly
)

パラメータ

drawGraphics
テキストが描画される Graphics オブジェクト。測定のみを行う場合は null に設定できます。
measureGraphics
RTF テキストの測定に使用される Graphics オブジェクト。
boundsRectTw
テキストの範囲(ツイップ単位)。幅または高さが double.PositiveInfinite として指定された場合は、この次元が無限であることを意味します。
startIndex
テキスト範囲の最初の文字のインデックス。
length
テキスト範囲の長さ。このパラメータが 0 以下の場合は、startIndex からすべてのテキストが計算されます。
measureOnly
テキストのみを測定するかどうかを示します。

戻り値の型

測定された情報を含む C1RichTextMeasureInfo を返します。
参照

参照

C1RichText クラス
C1RichText メンバ