GetDesiredIndentation Method
Collapse the table of content
Expand the table of content

ISmartIndentationService.GetDesiredIndentation Method (ITextView, ITextSnapshotLine)


Gets the desired indentation of an ITextSnapshotLine as displayed in ITextView.

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

Nullable<int> GetDesiredIndentation(
	ITextView textView,
	ITextSnapshotLine line


Type: Microsoft.VisualStudio.Text.Editor.ITextView

The text view in which the line is displayed.

Type: Microsoft.VisualStudio.Text.ITextSnapshotLine

The line for which to compute the indentation.

Return Value

Type: System.Nullable<Int32>

The desired indentation

This service consumes ISmartIndentProvider objects to determine how to perform the indentation.

Return to top
© 2015 Microsoft