ISmartIndentationService Interface

Determines automatic indentation when the enter key is pressed or when navigating to an empty line.

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

public interface ISmartIndentationService

The ISmartIndentationService type exposes the following members.

Public methodGetDesiredIndentationGets the desired indentation of an ITextSnapshotLine as displayed in ITextView.

This is a MEF component part, and should be imported as follows:

[Import] ISmartIndentationService selector = null;

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