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

MoveUp() public method

Moves the caret up one row.
public MoveUp ( 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 MoveUp(bool Select)
        {
            CropPosition();
            int x = OldLogicalXPos;
            //error here
            try
            {
                if (CurrentRow != null && CurrentRow.PrevVisibleRow != null)
                {
                    Position.Y = CurrentRow.PrevVisibleRow.Index;
                    if (CurrentRow.IsCollapsed)
                    {
                        x = 0;
                    }
                }
            }
            catch
            {
                
            }
            finally
            {
                CropPosition();
                LogicalPosition = new TextPoint(x, Position.Y);
                CropPosition();
                CaretMoved(Select);
            }
        }

Same methods

Caret::MoveUp ( int rows, bool Select ) : void