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
)

Parameters

textView
Type: Microsoft.VisualStudio.Text.Editor::ITextView^

The text view in which the line is displayed.

line
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
Show: