PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / RenderTextFragment Class / GetCharRangeRects Method
The index of the first character in the range in the current fragment.
The number of characters in the range. (If a number greater than the number of characters in the fragment is specified, no error is generated and all characters are included in the range.)

In This Topic
    GetCharRangeRects Method (RenderTextFragment)
    In This Topic
    Gets an array of bounding rectangles for a range of characters (in the returned array, each line in the specified range is represented by a separate RectangleD structure).
    Syntax
    'Declaration
     
    Public Function GetCharRangeRects( _
       ByVal startCharIndex As Integer, _
       ByVal length As Integer _
    ) As RectangleD()
    public RectangleD[] GetCharRangeRects( 
       int startCharIndex,
       int length
    )

    Parameters

    startCharIndex
    The index of the first character in the range in the current fragment.
    length
    The number of characters in the range. (If a number greater than the number of characters in the fragment is specified, no error is generated and all characters are included in the range.)

    Return Value

    An array of RectangleD structures, each structure corresponding to a line of text.
    See Also