Udostępnij przez


Section Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy Section.

Przeciążenia

Section()

Inicjuje nowe, puste wystąpienie Section klasy.

Section(Block)

Inicjuje Section nowe wystąpienie klasy, przyjmując określony Block obiekt jako początkową zawartość nowego Sectionobiektu .

Section()

Inicjuje nowe, puste wystąpienie Section klasy.

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

Dotyczy

Section(Block)

Inicjuje Section nowe wystąpienie klasy, przyjmując określony Block obiekt jako początkową zawartość nowego Sectionobiektu .

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)

Parametry

block
Block

Block Obiekt określający początkową zawartość nowego Sectionobiektu .

Przykłady

W poniższym przykładzie pokazano użycie tego konstruktora.

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

Dotyczy