Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextPointer.InsertTextInRun Method (String)

 

Inserts the specified text into the text Run at the current position.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public void InsertTextInRun(
	string textData
)

Parameters

textData
Type: System.String

The text to insert.

Exception Condition
InvalidOperationException

The current position is not within a Run element.

ArgumentNullException

textData is null.

If the TextPointer is not scoped by a Run element, a Run is inserted along with the textData.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft