Delegate TextFrame.Listener
Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit.
Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
public delegate void TextFrame.Listener(TextLine line, float x, float y, TextLine source)
Parameters
lineTextLine- Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
xfloat- Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
yfloat- Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.
sourceTextLine- Told of each line of text as the frame draws it: the line as drawn, its text, font, size and color, at x, the left of its first letter, and y, its baseline; and the text line of the paragraph it is a piece of, or null for a list's label, so that a program can tell which of its text a point on the page is (hit testing). The pieces of a source are drawn in the order of its text, whole words, or a word cut at a soft hyphen (ending with a hyphen) or where it does not fit. Two things to know when matching the pieces with their sources: a space at the start of a text line (before a bold word, say) is drawn at the end of the piece before it, so it comes with the source before; and a word's soft hyphens (U+00AD) where it is not broken stay in the text of its piece, drawn as nothing.