DropHandlerBase.MoveText Method
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)
Syntax
'Declaration
Protected Overridable Function MoveText ( _
position As VirtualSnapshotPoint, _
selectionSpans As IList(Of ITrackingSpan), _
data As String _
) As Boolean
protected virtual bool MoveText(
VirtualSnapshotPoint position,
IList<ITrackingSpan> selectionSpans,
string data
)
protected:
virtual bool MoveText(
VirtualSnapshotPoint position,
IList<ITrackingSpan^>^ selectionSpans,
String^ data
)
abstract MoveText :
position:VirtualSnapshotPoint *
selectionSpans:IList<ITrackingSpan> *
data:string -> bool
override MoveText :
position:VirtualSnapshotPoint *
selectionSpans:IList<ITrackingSpan> *
data:string -> bool
protected function MoveText(
position : VirtualSnapshotPoint,
selectionSpans : IList<ITrackingSpan>,
data : String
) : boolean
Parameters
position
Type: Microsoft.VisualStudio.Text.VirtualSnapshotPointThe position at which the data is to be inserted.
selectionSpans
Type: IList<ITrackingSpan>A list of tracking spans.
data
Type: StringThe text to be inserted
Return Value
Type: Boolean
true if the operation was successful, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.