Section Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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)
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
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)