System.Windows.Forms.HexBox.KeyInterpreter.PerformPosMoveRightByte C# (CSharp) Method

PerformPosMoveRightByte() protected method

protected PerformPosMoveRightByte ( ) : bool
return bool
            protected virtual bool PerformPosMoveRightByte()
            {
                long pos = _hexBox._bytePos;
                int cp = _hexBox._byteCharacterPos;

                if(pos == _hexBox._byteProvider.Length)
                    return true;

                pos = Math.Min(_hexBox._byteProvider.Length, pos+1);
                cp = 0;

                _hexBox.SetPosition(pos, cp);

                if(pos > _hexBox._endByte-1)
                {
                    _hexBox.PerformScrollLineDown();
                }
                _hexBox.UpdateCaret();
                _hexBox.ScrollByteIntoView();
                _hexBox.Invalidate();

                return true;
            }