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

TerGetSelection

Get the beginning and ending positions of a selected text block.

bool TerGetSelection(out FirstLine, out FirstCol, out EndLine, out EndCol)
int FirstLine;Beginning line number of the block
int FirstCol;Beginning column number of the block
int EndLine;Last line number of the block
int EndCol;The first non-selected column position. The ending column position is not included in the selected block.

Return Value: This function returns true if a text block is selected, otherwise it returns false.