Partilhar via


Método IVsSyntheticTextSession.AddSyntheticRegions

Adiciona as sessões de texto sintético.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (em Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxe

'Declaração
Function AddSyntheticRegions ( _
    dwUpdateFlags As UInteger, _
    cRegions As Integer, _
    rgSynthReg As NewSyntheticRegion(), _
    <OutAttribute> ppEnum As IVsEnumSyntheticRegions() _
) As Integer
int AddSyntheticRegions(
    uint dwUpdateFlags,
    int cRegions,
    NewSyntheticRegion[] rgSynthReg,
    IVsEnumSyntheticRegions[] ppEnum
)
int AddSyntheticRegions(
    [InAttribute] unsigned int dwUpdateFlags, 
    [InAttribute] int cRegions, 
    [InAttribute] array<NewSyntheticRegion>^ rgSynthReg, 
    [OutAttribute] array<IVsEnumSyntheticRegions^>^ ppEnum
)
abstract AddSyntheticRegions : 
        dwUpdateFlags:uint32 * 
        cRegions:int * 
        rgSynthReg:NewSyntheticRegion[] * 
        ppEnum:IVsEnumSyntheticRegions[] byref -> int
function AddSyntheticRegions(
    dwUpdateFlags : uint, 
    cRegions : int, 
    rgSynthReg : NewSyntheticRegion[], 
    ppEnum : IVsEnumSyntheticRegions[]
) : int

Parâmetros

  • dwUpdateFlags
    Tipo: UInt32

    [in] Atualize os sinalizadores. Para valores de dwUpdateFlags consulte o CHANGE_SYNTHETIC_REGION_FLAGS enumeração.

  • cRegions
    Tipo: Int32

    [in] Número de regiões para adicionar.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr.idl:

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

Segurança do .NET Framework

Consulte também

Referência

IVsSyntheticTextSession Interface

Namespace Microsoft.VisualStudio.TextManager.Interop