Paragraph 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 Paragraph klassen.
Överlagringar
| Name | Description |
|---|---|
| Paragraph() |
Initierar en ny, tom instans av Paragraph klassen. |
| Paragraph(Inline) |
Initierar en ny instans av Paragraph klassen med ett angivet Inline objekt som initialt innehåll. |
Paragraph()
Initierar en ny, tom instans av Paragraph klassen.
public:
Paragraph();
public Paragraph();
Public Sub New ()
Gäller för
Paragraph(Inline)
public:
Paragraph(System::Windows::Documents::Inline ^ inline);
public Paragraph(System.Windows.Documents.Inline inline);
new System.Windows.Documents.Paragraph : System.Windows.Documents.Inline -> System.Windows.Documents.Paragraph
Public Sub New (inline As Inline)
Parametrar
Exempel
I följande exempel visas användningen av den här konstruktorn.
// A child Inline element for the new Paragraph element.
Run runx = new Run("Text to be hosted in the new paragraph...");
// After this line executes, the new element "parx"
// contains the specified Inline element, "runx".
Paragraph parx = new Paragraph(runx);
' A child Inline element for the new Paragraph element.
Dim runx As New Run("Text to be hosted in the new paragraph...")
' After this line executes, the new element "parx"
' contains the specified Inline element, "runx".
Dim parx As New Paragraph(runx)