New to Telerik UI for WPFStart a free 30-day trial

Class DefaultIndentProvider. Implements the ISmartIndentProvider

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.Indentation

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

C#
public class DefaultIndentProvider : ISmartIndentProvider

Inheritance: objectDefaultIndentProvider

Implements: ISmartIndentProvider

Constructors

Initializes a new instance of the DefaultIndentProvider class.

C#
public DefaultIndentProvider(RadSyntaxEditor associatedEditor)
Parameters:associatedEditorRadSyntaxEditor

The associated editor.

Methods

Gets the desired indentation.

C#
public int? GetDesiredIndentation(TextSnapshotLine line)
Parameters:lineTextSnapshotLine

The line.

Returns:

int?

System.Nullable<System.Int32>.

Implements: ISmartIndentProvider.GetDesiredIndentation(TextSnapshotLine)