VsTextPackageClass::EnumViews Method (IVsTextBuffer^, IVsEnumTextViews^)
Visual Studio 2015
Enumerates views that are provided with the core editor and are associated with a particular text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int EnumViews( IVsTextBuffer^ pBuffer, [OutAttribute] IVsEnumTextViews^% ppEnum )
Parameters
- pBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^
[in] Pointer to the IVsTextBuffer interface for which views should be returned. Pass in a value of null to return all views for all buffers.
- ppEnum
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsEnumTextViews^
[out] Pointer to the IVsEnumTextViews interface.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: