Freigeben über


IVsExpansionClient.FormatSpan-Methode

Wird aufgerufen, um die angegebene Spanne im angegebenen Textpuffer zu formatieren.

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

Syntax

'Declaration
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

Parameter

Rückgabewert

Typ: Int32
Wenn die Methode erfolgreich ausgeführt, gibt sie S_OKzurück.Bei einem Fehler wird ein Fehlercode zurückgegeben.

Hinweise

COM-Signatur

Von textmgr2.idl:

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

Die angegebene Spanne beschreibt den Extent des Codeausschnitts, nachdem sie eingefügt wurde. In der Regel umfasst das Formatieren von Tabulatoren oder Leerzeichen einfügen, um den Ausschnitt relativ zum Code um den Ausschnitt zu positionieren.

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsExpansionClient Schnittstelle

Microsoft.VisualStudio.TextManager.Interop-Namespace