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)

適用対象