public ScrollByteIntoView ( long index ) : void | ||
index | long | the index of the byte |
Résultat | 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);
}
}
HexBox::ScrollByteIntoView ( ) : void |