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

Class DefaultIndentProvider. Implements the ISmartIndentProvider

Definition

Namespace:Telerik.WinForms.Controls.SyntaxEditor.Indentation

Assembly:Telerik.WinControls.SyntaxEditor.dll

Syntax:

C#
public class DefaultIndentProvider : ISmartIndentProvider

Inheritance: objectDefaultIndentProvider

Implements: ISmartIndentProvider

Constructors

Initializes a new instance of the DefaultIndentProvider class.

C#
public DefaultIndentProvider(RadSyntaxEditorElement associatedEditor)
Parameters:associatedEditorRadSyntaxEditorElement

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)