Export (0) Print
Expand All

IVsTextManager.EnumViews Method

Enumerates views that are provided with the core editor and are associated with a particular text buffer.

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

int EnumViews(
	IVsTextBuffer pBuffer,
	out IVsEnumTextViews ppEnum


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.

Type: Microsoft.VisualStudio.TextManager.Interop.IVsEnumTextViews

[out] Pointer to the IVsEnumTextViews interface.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From textmgr.idl:

HRESULT IVsTextManager::EnumViews(
   [in] IVsTextBuffer *pBuffer,
   [out] IVsEnumTextViews **ppEnum

This method only applies to text views implemented by the core text editor package. Custom views registered with the environment are not enumerated using this method.

© 2015 Microsoft