コード例 #1
0
 public CaretPosition MoveTo(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition, Microsoft.VisualStudio.Text.PositionAffinity caretAffinity, bool captureHorizontalPosition)
 {
     throw new System.NotImplementedException();
 }
コード例 #2
0
 public CaretPosition MoveTo(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition)
 {
     throw new System.NotImplementedException();
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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)
 {
 }
コード例 #6
0
 public TextBounds GetExtendedCharacterBounds(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
 public CaretPosition MoveTo(Microsoft.VisualStudio.Text.VirtualSnapshotPoint bufferPosition)
 {
     return(MoveTo(bufferPosition.Position));
 }