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
textView
Type : Microsoft.VisualStudio.Text.Editor.ITextViewL'affichage de texte dans lequel la ligne est affichée.
line
Type : Microsoft.VisualStudio.Text.ITextSnapshotLineLigne pour laquelle la mise en retrait doit être calculée.
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
- Confiance totale accordée à l'appelant immédiat. Ce membre ne peut pas être utilisé par du code d'un niveau de confiance partiel. Pour plus d'informations, voir Utilisation de bibliothèques à partir de code d'un niveau de confiance partiel.