Section Constructores

Definición

Inicializa una nueva instancia de la clase Section.

Sobrecargas

Section()

Inicializa una nueva instancia vacía de la clase Section.

Section(Block)

Inicializa una nueva instancia de la clase Section, tomando un objeto Block especificado como el contenido inicial del nuevo Section.

Section()

Inicializa una nueva instancia vacía de la clase Section.

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

Se aplica a

Section(Block)

Inicializa una nueva instancia de la clase Section, tomando un objeto Block especificado como el contenido inicial del nuevo Section.

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)

Parámetros

block
Block

Un objeto Block que especifica el contenido inicial del nuevo Section.

Ejemplos

En el ejemplo siguiente se muestra el uso de este 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)

Se aplica a