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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET