void SetPosition(long bytePos, int byteCharacterPos) { if(_byteCharacterPos != byteCharacterPos) { _byteCharacterPos = byteCharacterPos; } if(bytePos != _bytePos) { _bytePos = bytePos; CheckCurrentLineChanged(); CheckCurrentPositionInLineChanged(); OnSelectionStartChanged(EventArgs.Empty); } }