[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TextMap.ITextMapExt.GetFragmentFromRect

GetFragmentFromRect Method

GetFragmentFromRect(ITextMap, RectangleF)

Returns the TextMapFragment containing all characters inside the specified rectangle, or null if no fragment could be found. A character is included if 50% or more of its area is inside the quadrilateral.

Declaration
public static TextMapFragment GetFragmentFromRect(this ITextMap tm, RectangleF bounds)
Public Shared Function GetFragmentFromRect(tm As ITextMap, bounds As RectangleF) As TextMapFragment
Parameters
Type Name Description
ITextMap tm

The current ITextMap.

RectangleF bounds

The target bounds.

Returns
Type Description
TextMapFragment

The TextMapFragment containing all characters inside bounds, or null.