ListItem Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy ListItem.
Przeciążenia
| Nazwa | Opis |
|---|---|
| ListItem() |
Inicjuje nowe, puste wystąpienie ListItem klasy. |
| ListItem(Paragraph) |
Inicjuje nowe wystąpienie klasy ListItem, przyjmując określony obiekt Paragraph jako początkową zawartość nowego ListItem. |
ListItem()
Inicjuje nowe, puste wystąpienie ListItem klasy.
public:
ListItem();
public ListItem();
Public Sub New ()
Dotyczy
ListItem(Paragraph)
public:
ListItem(System::Windows::Documents::Paragraph ^ paragraph);
public ListItem(System.Windows.Documents.Paragraph paragraph);
new System.Windows.Documents.ListItem : System.Windows.Documents.Paragraph -> System.Windows.Documents.ListItem
Public Sub New (paragraph As Paragraph)
Parametry
Przykłady
W poniższym przykładzie pokazano użycie tego konstruktora.
// 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)