VsHiddenTextLayerClass::AddHiddenRegions Method (UInt32, Int32, array<NewHiddenRegion>^, array<IVsEnumHiddenRegions^>^)
Visual Studio 2015
Adds a new hidden region to the text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
public: virtual int AddHiddenRegions( unsigned int dwUpdateFlags, int cRegions, array<NewHiddenRegion>^ rgHidReg, array<IVsEnumHiddenRegions^>^ ppEnum )
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:
array<Microsoft.VisualStudio.TextManager.Interop::NewHiddenRegion>^
[in, size_is (cRegions)] Caller-allocated array of outlining regions to add. For more information, see NewHiddenRegion.
- ppEnum
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::IVsEnumHiddenRegions^>^
[out] Pointer to an IVsEnumHiddenRegions object that can be used to enumerate the hidden regions in the text buffer.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: