IVsContainedLanguage.GetTextViewFilter Method (IVsIntellisenseHost, IOleCommandTarget, IVsTextViewFilter)

 

Returns a text view filter to handle delegated text view filtering responsibility.

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

int GetTextViewFilter(
	IVsIntellisenseHost pISenseHost,
	IOleCommandTarget pNextCmdTarget,
	out IVsTextViewFilter pTextViewFilter
)

Parameters

pISenseHost
Type: Microsoft.VisualStudio.TextManager.Interop.IVsIntellisenseHost

[in] An IVsIntellisenseHost object representing the IntelliSense host.

pNextCmdTarget
Type: Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget

[in] An IOleCommandTarget object representing the command target to pass any unhandled commands to.

pTextViewFilter
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextViewFilter

[out] Returns an IVsTextViewFilter object representing the text view filter that is used by the contained language service to receive any commands passed to the text view.

Return Value

Type: System.Int32

If successful, returns S_OK; otherwise, returns an error code.

From singlefileeditor.idl:

HRESULT GetTextViewFilter(
   [in]          IVsIntellisenseHost* pISenseHost,
   [in]          IOleCommandTarget*   pNextCmdTarget,
   [out, retval] IVsTextViewFilter**  pTextViewFilter);
Return to top
Show: