Paragraph Konstruktorer

Definition

Initierar en ny instans av Paragraph klassen.

Överlagringar

Name Description
Paragraph()

Initierar en ny, tom instans av Paragraph klassen.

Paragraph(Inline)

Initierar en ny instans av Paragraph klassen med ett angivet Inline objekt som initialt innehåll.

Paragraph()

Initierar en ny, tom instans av Paragraph klassen.

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

Gäller för

Paragraph(Inline)

Initierar en ny instans av Paragraph klassen med ett angivet Inline objekt som initialt innehåll.

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)

Parametrar

inline
Inline

Ett Inline objekt som anger det första innehållet i den nya Paragraph.

Exempel

I följande exempel visas användningen av den här konstruktorn.

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

Gäller för