Paragraph Constructors

Definitie

Initialiseert een nieuw exemplaar van de Paragraph klasse.

Overloads

Name Description
Paragraph()

Initialiseert een nieuwe, lege instantie van de Paragraph klasse.

Paragraph(Inline)

Initialiseert een nieuw exemplaar van de Paragraph klasse, waarbij een opgegeven Inline object als oorspronkelijke inhoud wordt gebruikt.

Paragraph()

Initialiseert een nieuwe, lege instantie van de Paragraph klasse.

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

Van toepassing op

Paragraph(Inline)

Initialiseert een nieuw exemplaar van de Paragraph klasse, waarbij een opgegeven Inline object als oorspronkelijke inhoud wordt gebruikt.

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

Een Inline object dat de oorspronkelijke inhoud van het nieuwe Paragraphobject opgeeft.

Voorbeelden

In het volgende voorbeeld ziet u het gebruik van deze 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)

Van toepassing op