Share via


ISmartIndentationService, interface

Détermine la mise en retrait automatique lorsque la clé d'entrer est appuyée sur ou lorsque naviguant à une ligne vide.

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

Syntaxe

'Déclaration
Public Interface ISmartIndentationService
public interface ISmartIndentationService
public interface class ISmartIndentationService
type ISmartIndentationService =  interface end
public interface ISmartIndentationService

Le type ISmartIndentationService expose les membres suivants.

Méthodes

  Nom Description
Méthode publique GetDesiredIndentation Obtient la mise en retrait souhaitée à ITextSnapshotLine comme affiché dans ITextView.

Début

Notes

C'est un composant MEF, et doit être importée comme suit :

[Import] ISmartIndentationService selector = null;

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

Voir aussi

Référence

Microsoft.VisualStudio.Text.Editor, espace de noms