Partager via


IVsTextManager.EnumViews(IVsTextBuffer, IVsEnumTextViews) Method

Definition

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

public:
 int EnumViews(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumTextViews ^ % ppEnum);
public:
 int EnumViews(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumTextViews ^ &  ppEnum);
int EnumViews(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & pBuffer, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumTextViews const & & ppEnum);
public int EnumViews (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer, out Microsoft.VisualStudio.TextManager.Interop.IVsEnumTextViews ppEnum);
abstract member EnumViews : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * IVsEnumTextViews -> int
Public Function EnumViews (pBuffer As IVsTextBuffer, ByRef ppEnum As IVsEnumTextViews) As Integer

Parameters

pBuffer
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
IVsEnumTextViews

[out] Pointer to the IVsEnumTextViews interface.

Returns

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

Remarks

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.

Applies to