共用方式為


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

Return Value

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

.NET Framework Security

See Also

Reference

DropHandlerBase Class

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace