InlineCollection.Add 方法

定义

Run 元素添加到集合。

重载

名称 说明
Add(String)

添加具有给定文本的隐式 Run 元素,作为一个 String提供 。

Add(UIElement)

添加一个隐式 InlineUIContainer ,其中包含已 UIElement 提供的内容。

Add(String)

添加具有给定文本的隐式 Run 元素,作为一个 String提供 。

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

参数

text
String

文本设置为 Text 隐式 Run属性。

适用于

Add(UIElement)

添加一个隐式 InlineUIContainer ,其中包含已 UIElement 提供的内容。

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

参数

uiElement
UIElement

UIElement 设置为 Child 隐式 InlineUIContainer属性。

适用于