Condividi tramite


IVsLanguageDragDropOps.IsTextDataAtLocation Method

Determines whether the data object passed to DragSetup contains data that can be rendered as text for the text buffer at the specified location?

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Dichiarazione
Function IsTextDataAtLocation ( _
    pBuffer As IVsTextLines, _
    iLine As Integer, _
    iCol As Integer, _
    <OutAttribute> ByRef pfIsTextDataValidAtLoc As Integer _
) As Integer
int IsTextDataAtLocation(
    IVsTextLines pBuffer,
    int iLine,
    int iCol,
    out int pfIsTextDataValidAtLoc
)
int IsTextDataAtLocation(
    [InAttribute] IVsTextLines^ pBuffer, 
    [InAttribute] int iLine, 
    [InAttribute] int iCol, 
    [OutAttribute] int% pfIsTextDataValidAtLoc
)
abstract IsTextDataAtLocation : 
        pBuffer:IVsTextLines * 
        iLine:int * 
        iCol:int * 
        pfIsTextDataValidAtLoc:int byref -> int 
function IsTextDataAtLocation(
    pBuffer : IVsTextLines, 
    iLine : int, 
    iCol : int, 
    pfIsTextDataValidAtLoc : int
) : int

Parameters

  • pfIsTextDataValidAtLoc
    Type: System.Int32%
    [out] Zero (false) if text data is not valid at the location, otherwise non-zero (true).

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is called on every mouse move (DragOver). DragSetup must have been called before calling this method.

.NET Framework Security

See Also

Reference

IVsLanguageDragDropOps Interface

Microsoft.VisualStudio.TextManager.Interop Namespace