Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.TextMap Namespace / ITextMapExt Class / GetFragmentFromRect Method
The current ITextMap.
The target bounds.

In This Topic
    GetFragmentFromRect Method
    In This Topic
    Returns the TextMapFragment containing all characters inside the specified rectangle, or a null reference (Nothing in Visual Basic) if no fragment could be found. A character is included if 50% or more of its area is inside the quadrilateral.
    Syntax
    'Declaration
     
    Public Shared Function GetFragmentFromRect( _
       ByVal tm As ITextMap, _
       ByVal bounds As System.Drawing.RectangleF _
    ) As TextMapFragment
    public static TextMapFragment GetFragmentFromRect( 
       ITextMap tm,
       System.Drawing.RectangleF bounds
    )

    Parameters

    tm
    The current ITextMap.
    bounds
    The target bounds.

    Return Value

    The TextMapFragment containing all characters inside bounds, or a null reference (Nothing in Visual Basic).
    See Also