共用方式為


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>

參數

傳回值

類型:Nullable<Int32>
放置在線條的開頭的空格數量或nullnull 參考 (即 Visual Basic 中的 Nothing)如果沒有任何您想要的縮排。

.NET Framework 安全性

請參閱

參考

ISmartIndent 介面

Microsoft.VisualStudio.Text.Editor 命名空間