Share via


VsHiddenTextLayerClass.AddHiddenRegions Method

Definition

Adds a new hidden region to the text buffer.

public:
 virtual int AddHiddenRegions(System::UInt32 dwUpdateFlags, int cRegions, cli::array <Microsoft::VisualStudio::TextManager::Interop::NewHiddenRegion> ^ rgHidReg, cli::array <Microsoft::VisualStudio::TextManager::Interop::IVsEnumHiddenRegions ^> ^ ppEnum) = Microsoft::VisualStudio::TextManager::Interop::IVsHiddenTextSession::AddHiddenRegions;
public:
 virtual int AddHiddenRegions(System::UInt32 dwUpdateFlags, int cRegions, cli::array <Microsoft::VisualStudio::TextManager::Interop::NewHiddenRegion> ^ rgHidReg, cli::array <Microsoft::VisualStudio::TextManager::Interop::IVsEnumHiddenRegions ^> ^ ppEnum);
 virtual int AddHiddenRegions(unsigned int dwUpdateFlags, int cRegions, std::Array <Microsoft::VisualStudio::TextManager::Interop::NewHiddenRegion> const & rgHidReg, std::Array <Microsoft::VisualStudio::TextManager::Interop::IVsEnumHiddenRegions const &> const & ppEnum);
public virtual int AddHiddenRegions (uint dwUpdateFlags, int cRegions, Microsoft.VisualStudio.TextManager.Interop.NewHiddenRegion[] rgHidReg, Microsoft.VisualStudio.TextManager.Interop.IVsEnumHiddenRegions[] ppEnum);
abstract member AddHiddenRegions : uint32 * int * Microsoft.VisualStudio.TextManager.Interop.NewHiddenRegion[] * Microsoft.VisualStudio.TextManager.Interop.IVsEnumHiddenRegions[] -> int
override this.AddHiddenRegions : uint32 * int * Microsoft.VisualStudio.TextManager.Interop.NewHiddenRegion[] * Microsoft.VisualStudio.TextManager.Interop.IVsEnumHiddenRegions[] -> int
Public Overridable Function AddHiddenRegions (dwUpdateFlags As UInteger, cRegions As Integer, rgHidReg As NewHiddenRegion(), ppEnum As IVsEnumHiddenRegions()) As Integer

Parameters

dwUpdateFlags
UInt32

[in] Specifies whether the hidden region is added to the Undo/Redo stack. For more information, see CHANGE_HIDDEN_REGION_FLAGS

cRegions
Int32

[in] Number of hidden regions to add to the text buffer.

rgHidReg
NewHiddenRegion[]

[in, size_is (cRegions)] Caller-allocated array of outlining regions to add. For more information, see NewHiddenRegion.

ppEnum
IVsEnumHiddenRegions[]

[out] Pointer to an IVsEnumHiddenRegions object that can be used to enumerate the hidden regions in the text buffer.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to