Paragraph 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 Paragraph 類別的新執行個體。
多載
Paragraph() |
初始化 Paragraph 類別的新的空執行個體。 |
Paragraph(Inline) |
Paragraph()
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)
參數
範例
下列範例示範此建構函式的使用方式。
// 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)