Partager via


ISmartIndent.GetDesiredIndentation Method

Gets the desired indentation of an ITextSnapshotLine.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Déclaration
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>

Parameters

Return Value

Type: System.Nullable<Int32>
The number of spaces to place at the start of the line, or nulla null reference (Nothing in Visual Basic) if there is no desired indentation.

.NET Framework Security

See Also

Reference

ISmartIndent Interface

Microsoft.VisualStudio.Text.Editor Namespace