In This Article

ChangeCharacterCasingAction Class

Represents an IEditAction that changes the character casing of the selected text.

public abstract class ChangeCharacterCasingAction : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Derived:
CapitalizeAction MakeLowercaseAction MakeUppercaseAction ToggleCharacterCasingAction
Implements:
IEditAction IKeyedObject

Remarks

If no text is currently selected, only the character after the caret is changed.

Constructors

ChangeCharacterCasingAction(string?)

Represents an IEditAction that changes the character casing of the selected text.

protected ChangeCharacterCasingAction(string? text)
Parameter Type Description
text string

The command text.

Remarks

If no text is currently selected, only the character after the caret is changed.

Properties

Casing

The CharacterCasing to apply.

protected abstract CharacterCasing? Casing { get; }

Property Value

CharacterCasing?

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