IVsOutliningSession::AddOutlineRegions Method (UInt32, Int32, array<NewOutlineRegion>^)
Visual Studio 2015
Creates an outlining region over the specified span of text.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int AddOutlineRegions( unsigned int dwOutliningFlags, int cRegions, array<NewOutlineRegion>^ rgOutlnReg )
Parameters
- dwOutliningFlags
-
Type:
System::UInt32
[in] Outlining flags controlling whether existing outlining regions are removed or preserved. For more information, see ADD_OUTLINE_REGION_FLAGS.
- cRegions
-
Type:
System::Int32
[in] Number of outlining regions to add.
- rgOutlnReg
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::NewOutlineRegion>^
[in, size_is(cRegions)] Caller-allocated array of outlining regions to add. For more information, see NewOutlineRegion.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsOutliningSession::AddOutlineRegions( [in] DWORD dwOutliningFlags, [in] long cRegions, [in, size_is(cRegions)] NewOutlineRegion *rgOutlnReg );
If you have a several regions that you want to outline in the text buffer, then create an array of outline regions and then call AddOutlineRegions once.
Show: