List Konstruktorer

Definition

Initierar en ny instans av List klassen.

Överlagringar

Name Description
List()

Initierar en ny, tom instans av List klassen.

List(ListItem)

Initierar en ny instans av List klassen och tar ett angivet ListItem objekt som det första innehållet i den nya List.

List()

Initierar en ny, tom instans av List klassen.

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

Gäller för

List(ListItem)

Initierar en ny instans av List klassen och tar ett angivet ListItem objekt som det första innehållet i den nya List.

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)

Parametrar

listItem
ListItem

Ett ListItem objekt som anger det första innehållet i den nya List.

Exempel

I följande exempel visas användningen av den här konstruktorn.

// 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)

Gäller för