In This Article

NormalizeLineTerminatorsAction Class

Represents an IEditAction that ensures the line terminators in a document are normalized to a specified LineTerminator.

public class NormalizeLineTerminatorsAction : EditActionBase, IEditAction, IKeyedObject, ICommand<IEditorView>, ICommand
Inheritance:
object Command EditActionBase object
Derived:
NormalizeLineTerminatorsToCRLFAction NormalizeLineTerminatorsToLFAction
Implements:
IEditAction IKeyedObject ICommand<IEditorView> ICommand

Constructors

NormalizeLineTerminatorsAction(LineTerminator)

Represents an IEditAction that ensures the line terminators in a document are normalized to a specified LineTerminator.

public NormalizeLineTerminatorsAction(LineTerminator targetLineTerminator)
Parameter Type Description
targetLineTerminator LineTerminator

The LineTerminator to use for normalization.

Properties

TargetLineTerminator

The LineTerminator to use for normalization.

public LineTerminator TargetLineTerminator { get; }

Property Value

LineTerminator

Methods

CanExecute(IEditorView)

Returns whether the edit action can execute in the specified IEditorView.

public override bool CanExecute(IEditorView view)
Parameter Type Description
view IEditorView

The IEditorView to examine.

Returns

bool:

true if the edit action can execute in the specified IEditorView; otherwise, false.

Execute(IEditorView)

Executes the edit action in the specified IEditorView.

public override void Execute(IEditorView view)
Parameter Type Description
view IEditorView

The IEditorView in which to execute the edit action.

Inherited Members

Extension Methods