[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TextMap.ITextMapExt

Class ITextMapExt

Namespace
GrapeCity.Documents.Pdf.TextMap
Assembly
GcDocs.Pdf.dll

Provides extension methods for the ITextMap interface.

public static class ITextMapExt
Inheritance
object
ITextMapExt
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Methods

GetFragmentFromQuadrilateral(ITextMap, Quadrilateral)

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

public static TextMapFragment GetFragmentFromQuadrilateral(this ITextMap tm, Quadrilateral bounds)

Parameters

tm ITextMap

The current ITextMap.

bounds Quadrilateral

The target bounds.

Returns

TextMapFragment

The TextMapFragment containing all characters inside bounds, or null.

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.

public static TextMapFragment GetFragmentFromRect(this ITextMap tm, RectangleF bounds)

Parameters

tm ITextMap

The current ITextMap.

bounds System.Drawing.RectangleF

The target bounds.

Returns

TextMapFragment

The TextMapFragment containing all characters inside bounds, or null.

GetLines(ITextMap, TextMapFragment)

Gets the lines of text in a TextMapFragment.

public static List<string> GetLines(this ITextMap tm, TextMapFragment fragment)

Parameters

tm ITextMap

The current ITextMap.

fragment TextMapFragment

The target fragment.

Returns

System.Collections.Generic.List<T><string>

The list of all lines belonging to the fragment..

GetText(ITextMap, TextMapFragment)

Gets the text of a TextMapFragment.

public static string GetText(this ITextMap tm, TextMapFragment fragment)

Parameters

tm ITextMap

The current ITextMap.

fragment TextMapFragment

The target fragment.

Returns

string

The text of the fragment.