IVsSyntheticTextSession.AddSyntheticRegions 方法

定义

添加合成文本会话。

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

中更新标志。 有关的值, dwUpdateFlags 请参阅 CHANGE_SYNTHETIC_REGION_FLAGS 枚举。

cRegions
Int32

中要添加的区域的数目。

rgSynthReg
NewSyntheticRegion[]

cRegions 定义新区域的结构的数组。

ppEnum
IVsEnumSyntheticRegions[]

弄可以为 null;如果非 null,则返回新区域的枚举。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textmgr:

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

适用于