System.Windows.Forms.HexBox.ScrollByteIntoView C# (CSharp) Method

ScrollByteIntoView() public method

Scrolls the specific byte into view
public ScrollByteIntoView ( long index ) : void
index long the index of the byte
return void
        public void ScrollByteIntoView(long index)
        {
            if(_byteProvider == null || _keyInterpreter == null)
                return;

            if(index < _startByte)
            {
                long line = (long)Math.Floor((double)index / (double)_iHexMaxHBytes);
                PerformScrollThumpPosition(line);
            }
            else if(index > _endByte)
            {
                long line = (long)Math.Floor((double)index / (double)_iHexMaxHBytes);
                line -= _iHexMaxVBytes-1;
                PerformScrollThumpPosition(line);
            }
        }

Same methods

HexBox::ScrollByteIntoView ( ) : void