VsSyntheticTextLayerClass::AddSyntheticRegions Method (UInt32, Int32, array<NewSyntheticRegion>^, array<IVsEnumSyntheticRegions^>^)

 

Adds synthetic text sessions.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public:
virtual 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 enum.

cRegions
Type: System::Int32

[in] Number of regions to add.

rgSynthReg
Type: array<Microsoft.VisualStudio.TextManager.Interop::NewSyntheticRegion>^

[in] 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 enum of the new regions.

Return Value

Type: System::Int32

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

Return to top
Show: