List Konstruktory

Definice

Inicializuje novou instanci List třídy.

Přetížení

List()

Inicializuje novou prázdnou List instanci třídy.

List(ListItem)

Inicializuje novou instanci List třídy, vezme zadaný ListItem objekt jako počáteční obsah nového List.

List()

Inicializuje novou prázdnou List instanci třídy.

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

Platí pro

List(ListItem)

Inicializuje novou instanci List třídy, vezme zadaný ListItem objekt jako počáteční obsah nového 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)

Parametry

listItem
ListItem

Objekt ListItem určující počáteční obsah nového Listobjektu .

Příklady

Následující příklad ukazuje použití tohoto konstruktoru.

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

Platí pro