Condividi tramite


Metodo ISmartIndentationService.GetDesiredIndentation

Ottiene il rientro desiderato di un oggetto ITextSnapshotLine come visualizzato in ITextView.

Spazio dei nomi:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Sintassi

'Dichiarazione
Function GetDesiredIndentation ( _
    textView As ITextView, _
    line As ITextSnapshotLine _
) As Nullable(Of Integer)
Nullable<int> GetDesiredIndentation(
    ITextView textView,
    ITextSnapshotLine line
)
Nullable<int> GetDesiredIndentation(
    ITextView^ textView, 
    ITextSnapshotLine^ line
)
abstract GetDesiredIndentation : 
        textView:ITextView * 
        line:ITextSnapshotLine -> Nullable<int> 
function GetDesiredIndentation(
    textView : ITextView, 
    line : ITextSnapshotLine
) : Nullable<int>

Parametri

Valore restituito

Tipo: Nullable<Int32>
il rientro desiderato

Note

questo servizio utilizza ISmartIndentProvider oggetti per determinare come eseguire il rientro.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ISmartIndentationService Interfaccia

Spazio dei nomi Microsoft.VisualStudio.Text.Editor