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
pBuffer
Tipo: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines[in] Un objeto de IVsTextLines que representa el búfer de texto que contiene el texto que se va a dar formato.
ts
Tipo: array<Microsoft.VisualStudio.TextManager.Interop.TextSpan[][in] Un objeto de TextSpan que describe el intervalo (un par de posiciones inicial y final) de texto que se da formato.
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
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.
Vea también
Referencia
Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)