获取 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。