Bahasa

Section Konstruktor

Definisi

Menginisialisasi instans baru dari kelas Section.

Overload

Nama Deskripsi
Section()

Menginisialisasi instans baru yang kosong dari Section kelas.

Section(Block)

Menginisialisasi instans baru kelas Section, mengambil objek Block tertentu sebagai konten awal Sectionbaru.

Section()

Menginisialisasi instans baru yang kosong dari Section kelas.

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

Berlaku untuk

Section(Block)

Menginisialisasi instans baru kelas Section, mengambil objek Block tertentu sebagai konten awal Sectionbaru.

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)

Parameter

block
Block

Objek Block yang menentukan konten awal dari yang baru Section.

Contoh

Contoh berikut menunjukkan penggunaan konstruktor ini.

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

Berlaku untuk