[]
Represents a paragraph of text.
public interface ITextParagraph : IReadOnlyList<ITextLine>, IReadOnlyCollection<ITextLine>, IEnumerable<ITextLine>, IEnumerable
Gets the Page containing this paragraph.
Page Page { get; }
Gets the list of text runs that comprise this paragraph.
IReadOnlyList<ITextRun> Runs { get; }
Gets the ITextMap containing this paragraph.
ITextMap TextMap { get; }
Returns a quadrilateral that specifies the bounds of this paragraph (relative to the top left corner of the page).
Quadrilateral GetCoords()
The Quadrilateral that specifies the bounds.
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()
The list of point arrays that specify the bounds.
Returns the paragraph text.
string GetText()
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)
startIndex
intThe zero-based index of the fragment's starting character in this paragraph's text.
length
intThe total number of characters in the fragment.
firstRunIndex
intOUT: The index of the run in Runs that contains the beginning of the specified text fragment.
indexInFirstRun
intOUT: The index of the text fragment's first character in the run at firstRunIndex
position in Runs.
lastRunIndex
intOUT: The index of the run in Runs that contains the end of the specified text fragment.
indexInLastRun
intOUT: The index of the text fragment's last character in the run at lastRunIndex
position in Runs.