Section Constructors

Definitie

Initialiseert een nieuw exemplaar van de Section klasse.

Overloads

Name Description
Section()

Initialiseert een nieuwe, lege instantie van de Section klasse.

Section(Block)

Initialiseert een nieuw exemplaar van de Section klasse, waarbij een opgegeven Block object wordt gebruikt als de eerste inhoud van het nieuwe Sectionobject.

Section()

Initialiseert een nieuwe, lege instantie van de Section klasse.

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

Van toepassing op

Section(Block)

Initialiseert een nieuw exemplaar van de Section klasse, waarbij een opgegeven Block object wordt gebruikt als de eerste inhoud van het nieuwe Sectionobject.

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

block
Block

Een Block object dat de oorspronkelijke inhoud van het nieuwe Sectionobject opgeeft.

Voorbeelden

In het volgende voorbeeld ziet u het gebruik van deze 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)

Van toepassing op