ISmartIndentationService.GetDesiredIndentation Yöntem

Tanım

İçinde gösterildiği gibi, istenen girintilemesini alır ITextSnapshotLine ITextView .

public:
 Nullable<int> GetDesiredIndentation(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextSnapshotLine ^ line);
public int? GetDesiredIndentation (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextSnapshotLine line);
abstract member GetDesiredIndentation : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextSnapshotLine -> Nullable<int>
Public Function GetDesiredIndentation (textView As ITextView, line As ITextSnapshotLine) As Nullable(Of Integer)

Parametreler

textView
ITextView

Çizginin görüntülendiği metin görünümü.

line
ITextSnapshotLine

Girintide hesaplama yapılacak çizgi.

Döndürülenler

Nullable<Int32>

Satırın başlangıcında yerleştirilecek boşluk sayısı veya istenen girintileme yoksa null.

Açıklamalar

Bu hizmet ISmartIndentProvider , girintileme yapmayı öğrenmek için s kullanır.

Şunlara uygulanır