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

TerInsertRtfFile

Insert an RTF file at the specified cursor location.

bool TerInsertRtfFile( FileName, line, column, repaint)
string FileName;The name of the RTF file.
int line;line location (base 0) where the text will be inserted. You can also set the 'line' parameter to -1 to insert the rtf document at the current cursor position. Or, set it to –2 to insert the rtf file at the end of the current document.
int column;column location (base 0) where the text will be inserted. This parameter is ignored when the 'line' parameter is set to -1 or –2.
bool repaint;true to refresh the window after this operation

Description: Please refer to the InsertRtfBuf function for further description of the 'line' and 'column' arguments.

This function is available in the 'word wrap' mode only.

Return Value: This function returns true if successful.