AvalonStudio.TextEditor.Document.TextSourceVersionProvider.Version.MoveOffsetTo C# (CSharp) Method

MoveOffsetTo() public method

public MoveOffsetTo ( ITextSourceVersion other, int oldOffset, AnchorMovementType movement ) : int
other ITextSourceVersion
oldOffset int
movement AnchorMovementType
return int
			public int MoveOffsetTo(ITextSourceVersion other, int oldOffset, AnchorMovementType movement)
			{
				var offset = oldOffset;
				foreach (var e in GetChangesTo(other))
				{
					offset = e.GetNewOffset(offset, movement);
				}
				return offset;
			}