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 命名空间