Paragraph Constructeurs

Définition

Initialise une nouvelle instance de la classe Paragraph.

Surcharges

Paragraph()

Initialise une nouvelle instance vide de la classe Paragraph.

Paragraph(Inline)

Initialise une nouvelle instance de la classe Paragraph, en prenant un objet Inline spécifié comme son contenu initial.

Paragraph()

Initialise une nouvelle instance vide de la classe Paragraph.

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

S’applique à

Paragraph(Inline)

Initialise une nouvelle instance de la classe Paragraph, en prenant un objet Inline spécifié comme son contenu initial.

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)

Paramètres

inline
Inline

Objet Inline spécifiant le contenu initial du nouveau Paragraph.

Exemples

L’exemple suivant illustre l’utilisation de ce constructeur.

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

S’applique à