Export (0) Print
Expand All

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.

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

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.

Show:
© 2014 Microsoft