List Constructor (ListItem)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the List class, taking a specified ListItem object as the initial contents of the new List.

Namespace:   System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

Public Sub New (
	listItem As ListItem


Type: System.Windows.Documents.ListItem

A ListItem object specifying the initial contents of the new List.

The following example demonstrates usage of this constructor.

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

.NET Framework
Available since 3.0
Return to top