AvalonStudio.TextEditor.Document.TextSourceVersionProvider.Version.MoveOffsetTo C# (CSharp) 메소드

MoveOffsetTo() 공개 메소드

public MoveOffsetTo ( ITextSourceVersion other, int oldOffset, AnchorMovementType movement ) : int
other ITextSourceVersion
oldOffset int
movement AnchorMovementType
리턴 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;
			}