IVsSyntheticTextSession::AddSyntheticRegions Method (UInt32, Int32, array<NewSyntheticRegion>^, array<IVsEnumSyntheticRegions^>^)
Visual Studio 2015
Adds synthetic text sessions.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int AddSyntheticRegions( unsigned int dwUpdateFlags, int cRegions, array<NewSyntheticRegion>^ rgSynthReg, array<IVsEnumSyntheticRegions^>^ ppEnum )
Parameters
- dwUpdateFlags
-
Type:
System::UInt32
[in] Update flags. For values of dwUpdateFlags see the CHANGE_SYNTHETIC_REGION_FLAGS enumeration.
- cRegions
-
Type:
System::Int32
[in] Number of regions to add.
- rgSynthReg
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::NewSyntheticRegion>^
[in] An array of cRegions structs defining the new regions.
- ppEnum
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::IVsEnumSyntheticRegions^>^
[out] May be null; if non-null, returns an enumeration of the new regions.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsSyntheticTextSession::AddSyntheticRegions( [in] DWORD dwUpdateFlags, [in] long cRegions, [in, size_is(cRegions)] NewSyntheticRegion *rgSynthReg, [out] IVsEnumSyntheticRegions **ppEnum );
Show: