Section Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av Section klassen.
Överlagringar
| Name | Description |
|---|---|
| Section() |
Initierar en ny, tom instans av Section klassen. |
| Section(Block) |
Initierar en ny instans av Section klassen och tar ett angivet Block objekt som det första innehållet i den nya Section. |
Section()
Initierar en ny, tom instans av Section klassen.
public:
Section();
public Section();
Public Sub New ()
Gäller för
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)
Parametrar
Exempel
I följande exempel visas användningen av den här konstruktorn.
// 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)