TE Edit Control .NET Core / .NET Framework Help
Product page

TerSetLine

Set the text and font ids for a line

bool TerSetLine( LineNo, text, font)
int LineNo;The text line number (0 to TotalLines - 1) to set
string text;the text string to apply.
ushort[] font;Contain the font id array to apply. You can set this parameter to null if the font ids are not available.

Description: This function is used to set new text for a line. The length of the 'font' array must be identical to the number of characters in the text string. The font array must contain valid font ids (0 to TotalFonts - 1). You can get information about an editor font id by using the GetFontInfo function.

Return Value: This function returns a true value when successful.