Section 构造函数

定义

初始化 Section 类的新实例。

重载

名称 说明
Section()

初始化类的新空实例 Section

Section(Block)

初始化 Section 类的新实例,将指定的 Block 对象作为新 Section的初始内容。

Section()

初始化类的新空实例 Section

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

适用于

Section(Block)

初始化 Section 类的新实例,将指定的 Block 对象作为新 Section的初始内容。

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)

参数

block
Block

一个 Block 对象,指定新 Section内容的初始内容。

示例

以下示例演示了此构造函数的用法。

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

适用于