InlineCollection.Add Method

Definition

Adds a Run element to the collection.

Overloads

Add(String)

Adds an implicit Run element with the given text, supplied as a String.

Add(UIElement)

Adds an implicit InlineUIContainer with the supplied UIElement already in it.

Add(String)

Adds an implicit Run element with the given text, supplied as a String.

public:
 void Add(System::String ^ text);
public void Add (string text);
override this.Add : string -> unit
Public Sub Add (text As String)

Parameters

text
String

Text set as the Text property for the implicit Run.

Add(UIElement)

Adds an implicit InlineUIContainer with the supplied UIElement already in it.

public:
 void Add(System::Windows::UIElement ^ uiElement);
public void Add (System.Windows.UIElement uiElement);
override this.Add : System.Windows.UIElement -> unit

Parameters

uiElement
UIElement

UIElement set as the Child property for the implicit InlineUIContainer.

Applies to