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
'宣言
Public Overridable Function AddHiddenRegions ( _
dwUpdateFlags As UInteger, _
cRegions As Integer, _
rgHidReg As NewHiddenRegion(), _
<OutAttribute> ppEnum As IVsEnumHiddenRegions() _
) As Integer
'使用
Dim instance As VsHiddenTextLayerClass
Dim dwUpdateFlags As UInteger
Dim cRegions As Integer
Dim rgHidReg As NewHiddenRegion()
Dim ppEnum As IVsEnumHiddenRegions()
Dim returnValue As Integer
returnValue = instance.AddHiddenRegions(dwUpdateFlags, _
cRegions, rgHidReg, ppEnum)
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
)
public function AddHiddenRegions(
dwUpdateFlags : uint,
cRegions : int,
rgHidReg : NewHiddenRegion[],
ppEnum : IVsEnumHiddenRegions[]
) : int
Parameters
dwUpdateFlags
Type: System.UInt32[in] Specifies whether the hidden region is added to the Undo/Redo stack. For more information, see CHANGE_HIDDEN_REGION_FLAGS
cRegions
Type: System.Int32[in] Number of hidden regions to add to the text buffer.
rgHidReg
Type: [][in, size_is (cRegions)] Caller-allocated array of outlining regions to add. For more information, see NewHiddenRegion.
ppEnum
Type: [][out] Pointer to an IVsEnumHiddenRegions object that can be used to enumerate the hidden regions in the text buffer.
Return Value
Type: System.Int32
Implements
IVsHiddenTextSession.AddHiddenRegions(UInt32, Int32, [], [])
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.