Example #1
0
        private void ScriptTextBox_SelectionChanged(object sender, EventArgs e)
        {
            int selectionStart = ScriptTextBox.SelectionStart;
            int index          = ScriptTextBox.GetFirstCharIndexOfCurrentLine();
            int row            = ScriptTextBox.GetLineFromCharIndex(selectionStart) + 1;
            int column         = selectionStart - index + 1;

            Console.WriteLine(row.ToString() + "," + column.ToString());
        }