DropHandlerBase::MoveText Method (VirtualSnapshotPoint, IList<ITrackingSpan^>^, String^)

 

Moves the data from one location to another in the buffer by deleting the selection contents and inserting the specified text at the specified position.

Namespace:   Microsoft.VisualStudio.Text.Editor.DragDrop
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

protected:
virtual bool MoveText(
	VirtualSnapshotPoint position,
	IList<ITrackingSpan^>^ selectionSpans,
	String^ data
)

Parameters

position
Type: Microsoft.VisualStudio.Text::VirtualSnapshotPoint

The position at which the data is to be inserted.

selectionSpans
Type: System.Collections.Generic::IList<ITrackingSpan^>^

A list of tracking spans.

data
Type: System::String^

The text to be inserted

Return Value

Type: System::Boolean

true if the operation was successful, otherwise false.

Return to top
Show: