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 a new instance of the TypingCommand class.

public TypingAction()

TypingAction(string, bool)

Initializes a new instance of the TypingCommand 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

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

public bool Overwrite { get; }

Property Value

bool:

true if the typed text will be added in overwrite mode; otherwise, false.

TypedText

Gets the text that will be typed.

public string TypedText { get; }

Property Value

string:

The text that will be typed.

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