ListItem Constructors

Definitie

Initialiseert een nieuw exemplaar van de ListItem klasse.

Overloads

Name Description
ListItem()

Initialiseert een nieuwe, lege instantie van de ListItem klasse.

ListItem(Paragraph)

Initialiseert een nieuw exemplaar van de ListItem klasse, waarbij een opgegeven Paragraph object wordt gebruikt als de eerste inhoud van het nieuwe ListItemobject.

ListItem()

Initialiseert een nieuwe, lege instantie van de ListItem klasse.

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

Van toepassing op

ListItem(Paragraph)

Initialiseert een nieuw exemplaar van de ListItem klasse, waarbij een opgegeven Paragraph object wordt gebruikt als de eerste inhoud van het nieuwe ListItemobject.

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)

Parameters

paragraph
Paragraph

Een Paragraph object dat de oorspronkelijke inhoud van het nieuwe ListItemobject opgeeft.

Voorbeelden

In het volgende voorbeeld ziet u het gebruik van deze 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);
' 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)

Van toepassing op