List Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der List-Klasse.
Überlädt
| Name | Beschreibung |
|---|---|
| List() |
Initialisiert eine neue, leere Instanz der List Klasse. |
| List(ListItem) |
Initialisiert eine neue Instanz der List Klasse, wobei ein angegebenes ListItem -Objekt als anfänglicher Inhalt des neuen Listverwendet wird. |
List()
Initialisiert eine neue, leere Instanz der List Klasse.
public:
List();
public List();
Public Sub New ()
Gilt für:
List(ListItem)
public:
List(System::Windows::Documents::ListItem ^ listItem);
public List(System.Windows.Documents.ListItem listItem);
new System.Windows.Documents.List : System.Windows.Documents.ListItem -> System.Windows.Documents.List
Public Sub New (listItem As ListItem)
Parameter
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)