語言

Paragraph 建構函式

定義

初始化 Paragraph 類別的新執行個體。

多載

名稱 Description
Paragraph()

初始化一個新的、空的類別實例 Paragraph 。

Paragraph(Inline)

初始化該類別的新實例 Paragraph ,並以指定 Inline 物件作為其初始內容。

Paragraph()

初始化一個新的、空的類別實例 Paragraph 。

public:
 Paragraph();
public Paragraph();
Public Sub New ()

適用於

Paragraph(Inline)

初始化該類別的新實例 Paragraph ,並以指定 Inline 物件作為其初始內容。

public:
 Paragraph(System::Windows::Documents::Inline ^ inline);
public Paragraph(System.Windows.Documents.Inline inline);
new System.Windows.Documents.Paragraph : System.Windows.Documents.Inline -> System.Windows.Documents.Paragraph
Public Sub New (inline As Inline)

參數

inline
Inline

一個 Inline 指定新 Paragraph的初始內容的物件。

範例

以下範例展示了此建構子的使用方法。

// A child Inline element for the new Paragraph element.
Run runx = new Run("Text to be hosted in the new paragraph...");

// After this line executes, the new element "parx"
// contains the specified Inline element, "runx".
Paragraph parx = new Paragraph(runx);
' A child Inline element for the new Paragraph element.
Dim runx As New Run("Text to be hosted in the new paragraph...")

' After this line executes, the new element "parx"
' contains the specified Inline element, "runx".
Dim parx As New Paragraph(runx)

適用於