Share via


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

  • selectionSpans
    Type: IList<ITrackingSpan>

    A list of tracking spans.

  • data
    Type: String

    The text to be inserted

Return Value

Type: Boolean
true if the operation was successful, otherwise false.

.NET Framework Security

See Also

Reference

DropHandlerBase Class

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace