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

NameDescription
System_CAPS_pubmethodGetDesiredIndentation(ITextView, ITextSnapshotLine)

Gets 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.

Return to top
Show: