Alsing.Windows.Forms.SyntaxBox.Caret.MoveEnd C# (CSharp) Method

MoveEnd() public method

Moves the caret to the end of a row ignoring any whitespace characters at the end of the row
public MoveEnd ( bool Select ) : void
Select bool True if a selection should be created from the current caret pos to the new pos
return void
        public void MoveEnd(bool Select)
        {
            if (CurrentRow.IsCollapsed)
            {
                Position.Y = CurrentRow.Expansion_EndRow.Index;
                MoveEnd(Select);
            }
            else
            {
                CropPosition();
                Row xtr = CurrentRow;
                Position.X = xtr.Text.Length;
                RememberXPos();
                CaretMoved(Select);
            }
        }