VsSyntheticTextLayerClass.AddSyntheticRegions Method

Definition

Adds synthetic text sessions.

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

Parameters

dwUpdateFlags
UInt32

[in] Update flags. For values of dwUpdateFlags see the CHANGE_SYNTHETIC_REGION_FLAGS enum.

cRegions
Int32

[in] Number of regions to add.

rgSynthReg
NewSyntheticRegion[]

[in] array of cRegions structs defining the new regions.

ppEnum
IVsEnumSyntheticRegions[]

[out] May be null; if non-null, returns an enum of the new regions.

Returns

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

Implements

Applies to