Section Konstruktory

Definice

Inicializuje novou instanci Section třídy .

Přetížení

Section()

Inicializuje novou prázdnou Section instanci třídy .

Section(Block)

Inicializuje novou instanci Section třídy a vezme zadaný Block objekt jako počáteční obsah nového Sectionobjektu .

Section()

Inicializuje novou prázdnou Section instanci třídy .

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

Platí pro

Section(Block)

Inicializuje novou instanci Section třídy a vezme zadaný Block objekt jako počáteční obsah nového Sectionobjektu .

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

Objekt Block určující počáteční obsah nového Sectionobjektu .

Příklady

Následující příklad ukazuje použití tohoto konstruktoru.

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

Platí pro