Paragraph Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy Paragraph.

Przeciążenia

Paragraph()

Inicjuje nowe, puste wystąpienie Paragraph klasy.

Paragraph(Inline)

Inicjuje Paragraph nowe wystąpienie klasy, przyjmując określony Inline obiekt jako jego początkową zawartość.

Paragraph()

Inicjuje nowe, puste wystąpienie Paragraph klasy.

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

Dotyczy

Paragraph(Inline)

Inicjuje Paragraph nowe wystąpienie klasy, przyjmując określony Inline obiekt jako jego początkową zawartość.

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)

Parametry

inline
Inline

Obiekt Inline określający początkową zawartość nowego Paragraphobiektu .

Przykłady

W poniższym przykładzie pokazano użycie tego konstruktora.

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

Dotyczy