Paragraph Konstruktory

Definice

Inicializuje novou instanci Paragraph třídy.

Přetížení

Name Description
Paragraph()

Inicializuje novou prázdnou Paragraph instanci třídy.

Paragraph(Inline)

Inicializuje novou instanci Paragraph třídy, přičemž vezme zadaný Inline objekt jako jeho počáteční obsah.

Paragraph()

Inicializuje novou prázdnou Paragraph instanci třídy.

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

Platí pro

Paragraph(Inline)

Inicializuje novou instanci Paragraph třídy, přičemž vezme zadaný Inline objekt jako jeho počáteční obsah.

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

Objekt Inline určující počáteční obsah nového Paragraph.

Příklady

Následující příklad ukazuje použití tohoto konstruktoru.

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

Platí pro