In This Article

TypingAction Class

Represents an IEditAction that performs typing in a document.

public class TypingAction : EditActionBase, IEditAction, IKeyedObject
Inheritance:
object RoutedCommand RoutedUICommand EditActionBase object
Implements:
IEditAction IKeyedObject

Constructors

TypingAction()

Initializes an instance of the class.

public TypingAction()

TypingAction(string, bool)

Initializes an instance of the class.

public TypingAction(string typedText, bool overwrite)
Parameter Type Description
typedText string

The text that will be typed.

overwrite bool

Whether the text will be added in overwrite mode.

Properties

Overwrite

Indicates whether the typed text will be added in overwrite mode.

public bool Overwrite { get; }

Property Value

bool

TypedText

The text that will be typed.

public string? TypedText { get; }

Property Value

string

Methods

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.

ReadFromXml(XmlReader)

Deserializes the data for the IEditAction from XML.

public override void ReadFromXml(XmlReader reader)
Parameter Type Description
reader XmlReader

The System.Xml.XmlReader to use.

Remarks

This method is used for macro serialization.

WriteToXml(XmlWriter)

Serializes the data for the IEditAction to XML.

public override void WriteToXml(XmlWriter writer)
Parameter Type Description
writer XmlWriter

The System.Xml.XmlWriter to use.

Remarks

This method is used for macro serialization.

Inherited Members

Extension Methods