Partager via


ISmartIndentationService.GetDesiredIndentation, méthode

Obtient la mise en retrait souhaitée à ITextSnapshotLine comme affiché dans ITextView.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'Déclaration
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>

Paramètres

Valeur de retour

Type : Nullable<Int32>
La mise en retrait souhaitée

Notes

Ce service consomme des objets d'ISmartIndentProvider pour déterminer comment effectuer la mise en retrait.

Sécurité .NET Framework

Voir aussi

Référence

ISmartIndentationService Interface

Microsoft.VisualStudio.Text.Editor, espace de noms