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)

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft