Section Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Section class.
Overloads
Section() |
Initializes a new, empty instance of the Section class. |
Section(Block) |
Initializes a new instance of the Section class, taking a specified Block object as the initial contents of the new Section. |
Section()
Initializes a new, empty instance of the Section class.
public:
Section();
public Section ();
Public Sub New ()
Applies to
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)
Parameters
Examples
The following example demonstrates usage of this constructor.
// 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)
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.