TerGetLine
Retrieve a text line.
int TerGetLine( LineNo, out text, out font)
int LineNo; | line number (0 to TotalLines - 1) to retrieve. |
string text; | string variable to retrieve the text for the line. |
int[] font; | an array variable to retrieve the font ids for each character in the line. |
Description: This routine is used to retrieve the text and the font ids for a specified line. The 'font' variable receives an array of font ids. You can get further information about each font id by calling the 'GetFontInfo' function.
Return Value: This function returns the length of the retrieved line. This function return -1 if an error is encountered or when the 'LineNo' exceeds the total lines in the windows.
C# Example:
string text; int[] font; int len; ' Get the text and font ids TerGetLine(LineNo,out text,out font); VB Example: Dim text As String Dim font As Integer() Tern1.TerGetLine(LineNo, text, font)