IVsSyntheticTextSession.AddSyntheticRegions(UInt32, Int32, NewSyntheticRegion[], IVsEnumSyntheticRegions[]) Метод

Определение

Добавляет синтетические сеансы текста.

public:
 int AddSyntheticRegions(System::UInt32 dwUpdateFlags, int cRegions, cli::array <Microsoft::VisualStudio::TextManager::Interop::NewSyntheticRegion> ^ rgSynthReg, cli::array <Microsoft::VisualStudio::TextManager::Interop::IVsEnumSyntheticRegions ^> ^ ppEnum);
public:
 int AddSyntheticRegions(unsigned int dwUpdateFlags, int cRegions, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::NewSyntheticRegion> ^ rgSynthReg, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::IVsEnumSyntheticRegions ^> ^ ppEnum);
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 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
Public Function AddSyntheticRegions (dwUpdateFlags As UInteger, cRegions As Integer, rgSynthReg As NewSyntheticRegion(), ppEnum As IVsEnumSyntheticRegions()) As Integer

Параметры

dwUpdateFlags
UInt32

[in] Флаги обновления. Значения dwUpdateFlags см. в разделе CHANGE_SYNTHETIC_REGION_FLAGS перечисление.

cRegions
Int32

[in] Количество областей для добавления.

rgSynthReg
NewSyntheticRegion[]

окне Массив структур, cRegions определяющих новые регионы.

ppEnum
IVsEnumSyntheticRegions[]

заполняет Может иметь значение null; Если значение не равно null, возвращает перечисление новых регионов.

Возвращаемое значение

Int32

Если метод завершается успешно, возвращает значение S_OK. В противном случае функция возвращает код ошибки.

Комментарии

Подпись COM

Из текстмгр. IDL:

HRESULT IVsSyntheticTextSession::AddSyntheticRegions(  
   [in] DWORD dwUpdateFlags,  
   [in] long cRegions,  
   [in, size_is(cRegions)] NewSyntheticRegion *rgSynthReg,  
   [out] IVsEnumSyntheticRegions **ppEnum  
);  

Применяется к