Add Method (String)
Collapse the table of content
Expand the table of content

InlineCollection.Add Method (String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Adds a string to the collection.

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

public void Add(
	string text


Type: System.String
The text to add.


text is null.

If the collection contains a single Run object, this method appends text to the existing object. Otherwise, a new Run object is created and appended to the collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft