Partager via


ISmartIndent.GetDesiredIndentation(ITextSnapshotLine) Method

Definition

Gets the desired indentation of an ITextSnapshotLine.

public:
 Nullable<int> GetDesiredIndentation(Microsoft::VisualStudio::Text::ITextSnapshotLine ^ line);
public int? GetDesiredIndentation (Microsoft.VisualStudio.Text.ITextSnapshotLine line);
abstract member GetDesiredIndentation : Microsoft.VisualStudio.Text.ITextSnapshotLine -> Nullable<int>
Public Function GetDesiredIndentation (line As ITextSnapshotLine) As Nullable(Of Integer)

Parameters

line
ITextSnapshotLine

The line for which to compute the indentation.

Returns

The number of spaces to place at the start of the line, or null if there is no desired indentation.

Applies to