[]
        
(Showing Draft Content)

C1.Win.Document.Util.C1RichText.DrawOrMeasure

DrawOrMeasure Method

DrawOrMeasure(Graphics, Graphics, Rect, int, int, bool)

Draws or measures the RTF text.

Declaration
public C1RichText.MeasureInfo DrawOrMeasure(Graphics drawGraphics, Graphics measureGraphics, Rect boundsRectTw, int startIndex, int length, bool measureOnly)
Public Function DrawOrMeasure(drawGraphics As Graphics, measureGraphics As Graphics, boundsRectTw As Rect, startIndex As Integer, length As Integer, measureOnly As Boolean) As C1RichText.MeasureInfo
Parameters
Type Name Description
Graphics drawGraphics

Graphics object on which text will be drawn. Can be null if only measuring should be performing.

Graphics measureGraphics

Graphics object, which will be used for measuring of RTF text.

Rect boundsRectTw

Bounds of text in twips. If width or height specified as double.PositiveInfinite then it means that this dimension infinite.

int startIndex

Index of first char of text's range.

int length

Length of text range, if this parameter is 0 or less than zero then all text from startIndex will be calculated.

bool measureOnly

Indicates whether text should be only measured or not.

Returns
Type Description
C1RichText.MeasureInfo

Returns the C1RichTextMeasureInfo which contains the measured info.