public CaretPosition MoveTo(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition, Microsoft.VisualStudio.Text.PositionAffinity caretAffinity, bool captureHorizontalPosition) { throw new System.NotImplementedException(); }
public CaretPosition MoveTo(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition) { throw new System.NotImplementedException(); }
/// <summary> /// Initializes a new instance of a <see cref="VirtualSnapshotSpan"/> at <paramref name="snapshotSpan"/>, with no virtual spaces. /// </summary> /// <param name="snapshotSpan">A snapshot span.</param> public VirtualSnapshotSpan(SnapshotSpan snapshotSpan) { _start = new VirtualSnapshotPoint(snapshotSpan.Start); _end = new VirtualSnapshotPoint(snapshotSpan.End); }
/// <summary> /// Determines whether or not the given virtual point is contained /// within this virtual span. /// </summary> /// <param name="virtualPoint"> /// The virtual point to check. /// </param> /// <returns> /// <c>true</c> if the position is greater than or equal to Start and strictly less /// than End, otherwise <c>false</c>. /// </returns> public bool Contains(VirtualSnapshotPoint virtualPoint) { return(virtualPoint >= _start && virtualPoint < _end); }
/// <summary> /// Instantiates a new Selection with a zero-width extent at the provided insertion point. /// </summary> /// <param name="insertionPoint">The location where a caret should be rendered and edits performed.</param> /// <param name="insertionPointAffinity"> /// The affinity of the insertion point. This is used in places like word-wrap where one buffer position can represent both the /// end of one line and the beginning of the next. /// </param> public Selection(VirtualSnapshotPoint insertionPoint, PositionAffinity insertionPointAffinity = PositionAffinity.Successor) : this(insertionPoint, insertionPoint, insertionPoint, insertionPointAffinity) { }
public TextBounds GetExtendedCharacterBounds(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition) { throw new NotImplementedException(); }
public CaretPosition MoveTo(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition) { return(MoveTo(bufferPosition.Position)); }