Paragraph Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Paragraph class.
Overloads
Paragraph() |
Initializes a new, empty instance of the Paragraph class. |
Paragraph(Inline) |
Initializes a new instance of the Paragraph class, taking a specified Inline object as its initial contents. |
Paragraph()
Initializes a new, empty instance of the Paragraph class.
public:
Paragraph();
public Paragraph ();
Public Sub New ()
Applies to
Paragraph(Inline)
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
Examples
The following example demonstrates usage of this 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)
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.