DropHandlerBase.MoveText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Moves the data from one location to another in the buffer by deleting the selection contents and inserting toInsert in insertionPoint.
protected:
virtual bool MoveText(Microsoft::VisualStudio::Text::VirtualSnapshotPoint position, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::ITrackingSpan ^> ^ selectionSpans, System::String ^ data);
protected virtual bool MoveText (Microsoft.VisualStudio.Text.VirtualSnapshotPoint position, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> selectionSpans, string data);
abstract member MoveText : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> * string -> bool
override this.MoveText : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> * string -> bool
Protected Overridable Function MoveText (position As VirtualSnapshotPoint, selectionSpans As IList(Of ITrackingSpan), data As String) As Boolean
Parameters
- position
- VirtualSnapshotPoint
Position at which the data is to be inserted
- selectionSpans
- IList<ITrackingSpan>
A list of ITrackingSpan tracking the selection of the user before the drop operation. This span collection should be deleted from the buffer
- data
- String
Text to be inserted
Returns
True if data insertion and removal was successful, false otherwise.