'宣言 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 を返します。