Export (0) Print
Expand All

ListItem.ListItem(Paragraph) Constructor

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

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

public ListItem (
	Paragraph paragraph
)
public ListItem (
	Paragraph paragraph
)
public function ListItem (
	paragraph : Paragraph
)
You cannot use constructors in XAML.

Parameters

paragraph

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

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:
© 2014 Microsoft