Compartilhar via


VsHiddenTextLayerClass.AddHiddenRegions Method

Adds a new hidden region to the text buffer.

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

Syntax

'Declaração
Public Overridable Function AddHiddenRegions ( _
    dwUpdateFlags As UInteger, _
    cRegions As Integer, _
    rgHidReg As NewHiddenRegion(), _
    <OutAttribute> ppEnum As IVsEnumHiddenRegions() _
) As Integer
public virtual int AddHiddenRegions(
    uint dwUpdateFlags,
    int cRegions,
    NewHiddenRegion[] rgHidReg,
    IVsEnumHiddenRegions[] ppEnum
)
public:
virtual int AddHiddenRegions(
    [InAttribute] unsigned int dwUpdateFlags, 
    [InAttribute] int cRegions, 
    [InAttribute] array<NewHiddenRegion>^ rgHidReg, 
    [OutAttribute] array<IVsEnumHiddenRegions^>^ ppEnum
)
abstract AddHiddenRegions : 
        dwUpdateFlags:uint32 * 
        cRegions:int * 
        rgHidReg:NewHiddenRegion[] * 
        ppEnum:IVsEnumHiddenRegions[] byref -> int 
override AddHiddenRegions : 
        dwUpdateFlags:uint32 * 
        cRegions:int * 
        rgHidReg:NewHiddenRegion[] * 
        ppEnum:IVsEnumHiddenRegions[] byref -> int 
public function AddHiddenRegions(
    dwUpdateFlags : uint, 
    cRegions : int, 
    rgHidReg : NewHiddenRegion[], 
    ppEnum : IVsEnumHiddenRegions[]
) : int

Parameters

  • cRegions
    Type: System.Int32
    [in] Number of hidden regions to add to the text buffer.

Return Value

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

Implements

IVsHiddenTextSession.AddHiddenRegions(UInt32, Int32, array<NewHiddenRegion[], array<IVsEnumHiddenRegions[])

.NET Framework Security

See Also

Reference

VsHiddenTextLayerClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace