Taal

List Constructors

Definitie

Initialiseert een nieuw exemplaar van de List klasse.

Overloads

Name Description
List()

Initialiseert een nieuwe, lege instantie van de List klasse.

List(ListItem)

Initialiseert een nieuw exemplaar van de List klasse, waarbij een opgegeven ListItem object wordt gebruikt als de eerste inhoud van het nieuwe Listobject.

List()

Initialiseert een nieuwe, lege instantie van de List klasse.

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

Van toepassing op

List(ListItem)

Initialiseert een nieuw exemplaar van de List klasse, waarbij een opgegeven ListItem object wordt gebruikt als de eerste inhoud van het nieuwe Listobject.

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)

Parameters

listItem
ListItem

Een ListItem object dat de oorspronkelijke inhoud van het nieuwe Listobject opgeeft.

Voorbeelden

In het volgende voorbeeld ziet u het gebruik van deze constructor.

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

Van toepassing op