IVsIntellisenseHost.GetContextSelection Method (TextSpan[])

 

Gets the selection relative to the context buffer.

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

int GetContextSelection(
	TextSpan[] pSelectionSpan
)

Parameters

pSelectionSpan
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[]

[out] TextSpan defining the context selection.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetContextSelection([out] TextSpan *pSelectionSpan);

Return to top
Show: