Compartilhar via


VsHiddenTextLayerClass.EnumHiddenRegions Method

Returns a list of the current hidden regions.

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

Syntax

'Declaração
Public Overridable Function EnumHiddenRegions ( _
    dwFindFlags As UInteger, _
    dwCookie As UInteger, _
    ptsRange As TextSpan(), _
    <OutAttribute> ByRef ppEnum As IVsEnumHiddenRegions _
) As Integer
public virtual int EnumHiddenRegions(
    uint dwFindFlags,
    uint dwCookie,
    TextSpan[] ptsRange,
    out IVsEnumHiddenRegions ppEnum
)
public:
virtual int EnumHiddenRegions(
    [InAttribute] unsigned int dwFindFlags, 
    [InAttribute] unsigned int dwCookie, 
    [InAttribute] array<TextSpan>^ ptsRange, 
    [OutAttribute] IVsEnumHiddenRegions^% ppEnum
)
abstract EnumHiddenRegions : 
        dwFindFlags:uint32 * 
        dwCookie:uint32 * 
        ptsRange:TextSpan[] * 
        ppEnum:IVsEnumHiddenRegions byref -> int 
override EnumHiddenRegions : 
        dwFindFlags:uint32 * 
        dwCookie:uint32 * 
        ptsRange:TextSpan[] * 
        ppEnum:IVsEnumHiddenRegions byref -> int 
public function EnumHiddenRegions(
    dwFindFlags : uint, 
    dwCookie : uint, 
    ptsRange : TextSpan[], 
    ppEnum : IVsEnumHiddenRegions
) : int

Parameters

  • dwCookie
    Type: System.UInt32
    [in] Specifies the client-defined hidden region type to find. Specify a value that matches the client-defined identifier specified during the creation of the new hidden region (that is, the dwClient member in the NewHiddenRegion structure).

Return Value

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

Implements

IVsHiddenTextSession.EnumHiddenRegions(UInt32, UInt32, array<TextSpan[], IVsEnumHiddenRegions%)

.NET Framework Security

See Also

Reference

VsHiddenTextLayerClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace