Compartir a través de


IVsExpansionClient.FormatSpan (Método)

Denominado para dar formato al intervalo especificado en el búfer de texto especificado.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop.8.0 (en Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxis

'Declaración
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 devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr2.idl:

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

El intervalo especificado describe la extensión del fragmento de código después de haber insertado. Formato normalmente implica la inserción de las fichas o de espacios para colocar el miniprograma en relación con el código alrededor del fragmento.

Seguridad de .NET Framework

Vea también

Referencia

IVsExpansionClient Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)