PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / RenderTextFragment Class / GetCharRangeRegion(Int32,Int32) Method
The index of the first character in the range in the current fragment.
The number of characters in the range.

In This Topic
    GetCharRangeRegion(Int32,Int32) Method
    In This Topic
    Gets a bounding System.Drawing.Region for a range of characters. The region is relative to the top left corner of the fragment's inner area.
    Syntax
    'Declaration
     
    Public Function GetCharRangeRegion( _
       ByVal startCharIndex As Integer, _
       ByVal length As Integer _
    ) As Region
    public Region GetCharRangeRegion( 
       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.

    Return Value

    The bounding region for the specified range, or null if the range is invalid.
    See Also