TerGetLineInfo
Get the current line attributes.
bool TerGetLineInfo(LineNo, out ParaId, out CellId, out ParaFID, out x, out y, out height, out lflags, out InfoFlags);
int LineNo; | Line number to retrieve the information. Set to -1 to use the current line number. |
int ParaId; | The paragraph id |
int CellId; | The table cell id |
int ParaFID; | The paragraph frame id |
int x; | The x position (in twips) of the line. |
int y; | The y position (in twips) of the line relative to the top of the page. |
int height; | The height (in twips) of the line. |
int lflags; | Line flags as defined by the LFLAG_ constants: tc.LFLAG_PARA : paragraph or cell break
line
tc.LFLAG_BREAK : any other break line
tc.LFLAG_PARA_FIRST : first para line
tc.LFLAG_CONTROL : line has embedded
control
tc.LFLAG_FNOTE : contains a footnote
tc.LFLAG_SOFT_COL: soft column break
tc.LFLAG_NBSPACE : line has non-break
space characters
tc.LFLAG_LINE : line break
tc.LFLAG_HTML_RULE: is html horizontal
rule
tc.LFLAG_BOX_TOP : draw top para border
before this line
tc.LFLAG_BOX_BOT : draw bot para border
before this line
tc.LFLAG_SECT : section break line
tc.LFLAG_FRAME_TOP: first line of a
screen frame
tc.LFLAG_NBDASH : line has non-break
dash characters
tc.LFLAG_PICT : line contains an
aligned picture
tc.LFLAG_PICT_SPACE: contains a picture
frame on the left
or the right side
tc.LFLAG_FNOTETEXT : contains a footnote
text
tc.LFLAG_FHDR : first page hdr
tc.LFLAG_FFTR : first page ftr
tc.LFLAG_HDR : regular page hdr
tc.LFLAG_FTR : regular page ftr
tc.LFLAG_HYPH : contains optional
hyphenation.
tc.LFLAG_SHADE_BEGIN: shading begins at
this line
tc.LFLAG_SHADE_END : shading ends at
this line
tc.LFLAG_TOC : has table of
contents
tc.LFLAG_LIST : line contains the
list number to
display
tc.LFLAG_HPARA : line contains a
hidden para marker
tc.LFLAG_LISTNUM : has list number
field in it
tc.LFLAG_SELECTED : result of
LineSelected
function
tc.LFLAG_ASSUMED_TAB:this cell line
assumes a decimal
tab in the
beginning of the
line
tc.LFLAG_AUTONUMLGL: has an autonumlgl
field in the line |
int InfoFlags; | Miscellaneous flags as defined by the INFO_ constants: tc.INFO_TAB = has TAB
tc.INFO_SECT = has section break
tc.INFO_PAGE = has page break
tc.INFO_COL = has column break
tc.INFO_CELL = has cell break
tc.INFO_ROW = has row break
tc.INFO_TABLE = has table
tc.INFO_JUST = justified text
tc.INFO_FRAME = displaced by a frame
tc.INFO_SPACE_LINE = is frame space
tc.INFO_PAGE_NUMBER= has page number
tc.INFO_FRM_SPC_BEF= has space before
frame
tc.INFO_DYN_FIELD = has dynamic field |
Description: The x, y, and the height values are available in the Page Mode only.
Return Value: This function returns a true value when successful. Otherwise it returns false.