VsSyntheticTextLayerClass.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) = Microsoft::VisualStudio::TextManager::Interop::IVsSyntheticTextSession::AddSyntheticRegions;
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

参数

dwUpdateFlags
UInt32

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

cRegions
Int32

中要添加的区域的数目。

rgSynthReg
NewSyntheticRegion[]

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

ppEnum
IVsEnumSyntheticRegions[]

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

返回

Int32

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

实现

适用于