ISmartIndent.GetDesiredIndentation 方法
取得 ITextSnapshotLine 的所需縮排。
命名空間: Microsoft.VisualStudio.Text.Editor
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Function GetDesiredIndentation ( _
line As ITextSnapshotLine _
) As Nullable(Of Integer)
Nullable<int> GetDesiredIndentation(
ITextSnapshotLine line
)
Nullable<int> GetDesiredIndentation(
ITextSnapshotLine^ line
)
abstract GetDesiredIndentation :
line:ITextSnapshotLine -> Nullable<int>
function GetDesiredIndentation(
line : ITextSnapshotLine
) : Nullable<int>
參數
line
類型:Microsoft.VisualStudio.Text.ITextSnapshotLine要用來計算縮排的文字行。
傳回值
類型:Nullable<Int32>
放置在線條的開頭的空格數量或nullnull 參考 (即 Visual Basic 中的 Nothing)如果沒有任何您想要的縮排。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。