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)

適用対象