Partilhar via


Método IVsExpansionClient.FormatSpan

Chamado para formatar o período especificado no buffer de texto especificado.

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

Sintaxe

'Declaração
Function FormatSpan ( _
    pBuffer As IVsTextLines, _
    ts As TextSpan() _
) As Integer
int FormatSpan(
    IVsTextLines pBuffer,
    TextSpan[] ts
)
int FormatSpan(
    [InAttribute] IVsTextLines^ pBuffer, 
    [InAttribute] array<TextSpan>^ ts
)
abstract FormatSpan : 
        pBuffer:IVsTextLines * 
        ts:TextSpan[] -> int
function FormatSpan(
    pBuffer : IVsTextLines, 
    ts : TextSpan[]
) : int

Parâmetros

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 textmgr2.idl:

HRESULT IVsExpansionClient::FormatSpan(
   [in]IVsTextLines *pBuffer,
   [in]TextSpan *ts
);

O intervalo especificado descreve a extensão do trecho de código após ele ter sido inserido. Formatação normalmente envolve a inserção de tabulações ou espaços para posicionar o trecho de código em relação ao código ao redor o trecho.

Segurança do .NET Framework

Consulte também

Referência

IVsExpansionClient Interface

Namespace Microsoft.VisualStudio.TextManager.Interop