Compartir a través de


IVsLanguageDragDropOps.IsTextDataAtLocation Method

Definition

Determines whether the data object passed to DragSetup(IDataObject, IVsTextLines, Int32) contains data that can be rendered as text for the text buffer at the specified location?

public:
 int IsTextDataAtLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, int iLine, int iCol, [Runtime::InteropServices::Out] int % pfIsTextDataValidAtLoc);
int IsTextDataAtLocation(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, int iLine, int iCol, [Runtime::InteropServices::Out] int & pfIsTextDataValidAtLoc);
public int IsTextDataAtLocation (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, int iLine, int iCol, out int pfIsTextDataValidAtLoc);
abstract member IsTextDataAtLocation : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * int * int * int -> int
Public Function IsTextDataAtLocation (pBuffer As IVsTextLines, iLine As Integer, iCol As Integer, ByRef pfIsTextDataValidAtLoc As Integer) As Integer

Parameters

pBuffer
IVsTextLines

The text buffer.

iLine
Int32

The line number.

iCol
Int32

The column number

pfIsTextDataValidAtLoc
Int32

[out] Zero (false) if text data is not valid at the location, otherwise non-zero (true).

Returns

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.

Applies to