IVsSyntheticTextSession.AddSyntheticRegions(UInt32, Int32, NewSyntheticRegion[], IVsEnumSyntheticRegions[]) Methode

Definition

Fügt synthetische Textsitzungen hinzu.

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

Parameter

dwUpdateFlags
UInt32

[in] Updateflags. Werte von dwUpdateFlags finden Sie unter der- CHANGE_SYNTHETIC_REGION_FLAGS Enumeration.

cRegions
Int32

[in] Anzahl der hinzuzufügenden Bereiche.

rgSynthReg
NewSyntheticRegion[]

in Ein Array von cRegions Strukturen, die die neuen Bereiche definieren.

ppEnum
IVsEnumSyntheticRegions[]

vorgenommen Kann NULL sein. Wenn der Wert ungleich NULL ist, wird eine Enumeration der neuen Bereiche zurückgegeben.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Aus textmgr. idl:

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

Gilt für