Sdílet prostřednictvím


IVsHiddenTextSessionEx.AddHiddenRegionsEx Method

Definition

Adds IVsHiddenRegionEx objects.

public:
 int AddHiddenRegionsEx(System::UInt32 dwUpdateFlags, int cRegions, cli::array <Microsoft::VisualStudio::TextManager::Interop::NewHiddenRegionEx> ^ rgHidReg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumHiddenRegions ^ % ppEnum);
int AddHiddenRegionsEx(unsigned int dwUpdateFlags, int cRegions, std::Array <Microsoft::VisualStudio::TextManager::Interop::NewHiddenRegionEx> const & rgHidReg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumHiddenRegions const & & ppEnum);
public int AddHiddenRegionsEx (uint dwUpdateFlags, int cRegions, Microsoft.VisualStudio.TextManager.Interop.NewHiddenRegionEx[] rgHidReg, out Microsoft.VisualStudio.TextManager.Interop.IVsEnumHiddenRegions ppEnum);
abstract member AddHiddenRegionsEx : uint32 * int * Microsoft.VisualStudio.TextManager.Interop.NewHiddenRegionEx[] * IVsEnumHiddenRegions -> int
Public Function AddHiddenRegionsEx (dwUpdateFlags As UInteger, cRegions As Integer, rgHidReg As NewHiddenRegionEx(), ByRef ppEnum As IVsEnumHiddenRegions) As Integer

Parameters

dwUpdateFlags
UInt32

[in] Updates flags. For information on values for dwUpdateFlags see CHANGE_HIDDEN_REGION_FLAGS.

cRegions
Int32

[in] The number of regions to add.

rgHidReg
NewHiddenRegionEx[]

[in] The array of IVsHiddenRegionEx objects.

ppEnum
IVsEnumHiddenRegions

[out] 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.

Remarks

COM Signature

From textmgr2.idl:

HRESULT IVsHiddenTextSessionEx::AddHiddenRegionsEx(  
   [in] DWORD dwUpdateFlags,  
   [in] long cRegions,  
   [in, size_is(cRegions)] NewHiddenRegionEx *rgHidReg,  
   [out] IVsEnumHiddenRegions **ppEnum  
);  

Applies to