次の方法で共有


DropHandlerBase.SelectText Method

Selects the text at the end of the drop operation.

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

Syntax

'宣言
Protected Overridable Sub SelectText ( _
    insertionPoint As SnapshotPoint, _
    dataLength As Integer, _
    dragDropInfo As DragDropInfo, _
    reverse As Boolean _
)
protected virtual void SelectText(
    SnapshotPoint insertionPoint,
    int dataLength,
    DragDropInfo dragDropInfo,
    bool reverse
)
protected:
virtual void SelectText(
    SnapshotPoint insertionPoint, 
    int dataLength, 
    DragDropInfo^ dragDropInfo, 
    bool reverse
)
abstract SelectText : 
        insertionPoint:SnapshotPoint * 
        dataLength:int * 
        dragDropInfo:DragDropInfo * 
        reverse:bool -> unit 
override SelectText : 
        insertionPoint:SnapshotPoint * 
        dataLength:int * 
        dragDropInfo:DragDropInfo * 
        reverse:bool -> unit 
protected function SelectText(
    insertionPoint : SnapshotPoint, 
    dataLength : int, 
    dragDropInfo : DragDropInfo, 
    reverse : boolean
)

Parameters

  • dataLength
    Type: System.Int32
    The length of the data inserted in the buffer.
  • reverse
    Type: System.Boolean
    true if the existing selection prior to the drop was reversed.

Remarks

This method will only be called if the drop of data resulted in an DragDropEffects other than None.

.NET Framework Security

See Also

Reference

DropHandlerBase Class

Microsoft.VisualStudio.Text.Editor.DragDrop Namespace