[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TextMap.ITextParagraph

Interface ITextParagraph

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

Represents a paragraph of text.

public interface ITextParagraph : IReadOnlyList<ITextLine>, IReadOnlyCollection<ITextLine>, IEnumerable<ITextLine>, IEnumerable
Inherited Members
System.Collections.Generic.IReadOnlyList<GrapeCity.Documents.Pdf.TextMap.ITextLine>.this[int]
System.Collections.Generic.IReadOnlyCollection<GrapeCity.Documents.Pdf.TextMap.ITextLine>.Count
System.Collections.Generic.IEnumerable<GrapeCity.Documents.Pdf.TextMap.ITextLine>.GetEnumerator()

Properties

Page

Gets the Page containing this paragraph.

Page Page { get; }

Property Value

Page

Runs

Gets the list of text runs that comprise this paragraph.

IReadOnlyList<ITextRun> Runs { get; }

Property Value

System.Collections.Generic.IReadOnlyList<T><ITextRun>

TextMap

Gets the ITextMap containing this paragraph.

ITextMap TextMap { get; }

Property Value

ITextMap

Methods

GetCoords()

Returns a quadrilateral that specifies the bounds of this paragraph (relative to the top left corner of the page).

Quadrilateral GetCoords()

Returns

Quadrilateral

The Quadrilateral that specifies the bounds.

GetPoints()

Returns the list of point arrays that specify the bounds of text fragments in this paragraph (relative to the top left corner of the page).

IList<PointF[]> GetPoints()

Returns

System.Collections.Generic.IList<T><System.Drawing.PointF[]>

The list of point arrays that specify the bounds.

GetText()

Returns the paragraph text.

string GetText()

Returns

string

GetTextRuns(int, int, out int, out int, out int, out int)

Finds the first and last ITextRun objects in the Runs collection of this paragraph that contain a specified fragment in this paragraph's whole text (as returned by GetText()). The fragment is specified by the starting index of its first character in the paragraph text, and the total number of characters in the fragment.

void GetTextRuns(int startIndex, int length, out int firstRunIndex, out int indexInFirstRun, out int lastRunIndex, out int indexInLastRun)

Parameters

startIndex int

The zero-based index of the fragment's starting character in this paragraph's text.

length int

The total number of characters in the fragment.

firstRunIndex int

OUT: The index of the run in Runs that contains the beginning of the specified text fragment.

indexInFirstRun int

OUT: The index of the text fragment's first character in the run at firstRunIndex position in Runs.

lastRunIndex int

OUT: The index of the run in Runs that contains the end of the specified text fragment.

indexInLastRun int

OUT: The index of the text fragment's last character in the run at lastRunIndex position in Runs.