共用方式為


Paragraph 建構函式

定義

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

多載

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)

適用於