次の方法で共有


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)

Syntax

'宣言
Function EnumViews ( _
    pBuffer As IVsTextBuffer, _
    <OutAttribute> ByRef ppEnum As IVsEnumTextViews _
) As Integer
'使用
Dim instance As IVsTextManager
Dim pBuffer As IVsTextBuffer
Dim ppEnum As IVsEnumTextViews
Dim returnValue As Integer

returnValue = instance.EnumViews(pBuffer, _
    ppEnum)
int EnumViews(
    IVsTextBuffer pBuffer,
    out IVsEnumTextViews ppEnum
)
int EnumViews(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [OutAttribute] IVsEnumTextViews^% ppEnum
)
function EnumViews(
    pBuffer : IVsTextBuffer, 
    ppEnum : IVsEnumTextViews
) : int

Parameters

Return Value

Type: System.Int32

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.

Permissions

See Also

Reference

IVsTextManager Interface

IVsTextManager Members

Microsoft.VisualStudio.TextManager.Interop Namespace