Export (0) Print
Expand All

List.List(ListItem) Constructor

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 List (
	ListItem listItem
)
public List (
	ListItem listItem
)
public function List (
	listItem : ListItem
)
You cannot use constructors in XAML.

Parameters

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.
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);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft