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
'宣告
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.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.
.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.