IVsLanguageDragDropOps::IsTextDataAtLocation Method (IVsTextLines^, Int32, Int32, Int32)

 

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)

int IsTextDataAtLocation(
	IVsTextLines^ pBuffer,
	int iLine,
	int iCol,
	[OutAttribute] int% pfIsTextDataValidAtLoc
)

Parameters

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

The text buffer.

iLine
Type: System::Int32

The line number.

iCol
Type: System::Int32

The column number

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.

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

Return to top
Show: