Section 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 Section 類別的新執行個體。
多載
Section() |
初始化 Section 類別的新的空執行個體。 |
Section(Block) |
Section()
Section(Block)
public:
Section(System::Windows::Documents::Block ^ block);
public Section (System.Windows.Documents.Block block);
new System.Windows.Documents.Section : System.Windows.Documents.Block -> System.Windows.Documents.Section
Public Sub New (block As Block)
參數
範例
下列範例示範此建構函式的使用方式。
// A child Block element for the new Section element.
Paragraph parx = new Paragraph(new Run("A bit of text content..."));
// After this line executes, the new element "secx"
// contains the specified Block element, "parx".
Section secx = new Section(parx);
' A child Block element for the new Section element.
Dim parx As New Paragraph(New Run("A bit of text content..."))
' After this line executes, the new element "secx"
' contains the specified Block element, "parx".
Dim secx As New Section(parx)