ListItem Konstruktoren

Definition

Initialisiert eine neue Instanz der ListItem-Klasse.

Überlädt

Name Beschreibung
ListItem()

Initialisiert eine neue, leere Instanz der ListItem Klasse.

ListItem(Paragraph)

Initialisiert eine neue Instanz der ListItem Klasse, wobei ein angegebenes Paragraph -Objekt als anfänglicher Inhalt des neuen ListItemverwendet wird.

ListItem()

Initialisiert eine neue, leere Instanz der ListItem Klasse.

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

Gilt für:

ListItem(Paragraph)

Initialisiert eine neue Instanz der ListItem Klasse, wobei ein angegebenes Paragraph -Objekt als anfänglicher Inhalt des neuen ListItemverwendet wird.

public:
 ListItem(System::Windows::Documents::Paragraph ^ paragraph);
public ListItem(System.Windows.Documents.Paragraph paragraph);
new System.Windows.Documents.ListItem : System.Windows.Documents.Paragraph -> System.Windows.Documents.ListItem
Public Sub New (paragraph As Paragraph)

Parameter

paragraph
Paragraph

Ein Paragraph Objekt, das den anfänglichen Inhalt des neuen ListItemangibt.

Beispiele

Im folgenden Beispiel wird die Verwendung dieses Konstruktors veranschaulicht.

// This line uses the ListItem constructor to create a new ListItem
// and initialize it with the specified Paragraph.
ListItem lix = new ListItem(new Paragraph(new Run("ListItem text...")));
// This line uses the List constructor to create a new List and populate
// it with the previously created ListItem.
List listx = new List(lix);
' This line uses the ListItem constructor to create a new ListItem
' and initialize it with the specified Paragraph.
Dim lix As New ListItem(New Paragraph(New Run("ListItem text...")))
' This line uses the List constructor to create a new List and populate
' it with the previously created ListItem.
Dim listx As New List(lix)

Gilt für: