แก้ไข

แชร์ผ่าน


Paragraph Constructors

Definition

Initializes a new instance of the Paragraph class.

Overloads

Paragraph()

Initializes a new, empty instance of the Paragraph class.

Paragraph(Inline)

Initializes a new instance of the Paragraph class, taking a specified Inline object as its initial contents.

Paragraph()

Initializes a new, empty instance of the Paragraph class.

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

Applies to

Paragraph(Inline)

Initializes a new instance of the Paragraph class, taking a specified Inline object as its initial contents.

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)

Parameters

inline
Inline

An Inline object specifying the initial contents of the new Paragraph.

Examples

The following example demonstrates usage of this constructor.

// 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)

Applies to