ISmartIndent.GetDesiredIndentation Method (ITextSnapshotLine)

 

Gets the desired indentation of an ITextSnapshotLine.

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

Nullable<int> GetDesiredIndentation(
	ITextSnapshotLine line
)

Parameters

line
Type: Microsoft.VisualStudio.Text.ITextSnapshotLine

The line for which to compute the indentation.

Return Value

Type: System.Nullable<Int32>

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

Return to top
Show: