ListItem ListItem ListItem ListItem Constructors

Définition

Surcharges

ListItem() ListItem() ListItem()

Initialise une nouvelle instance vide de la classe ListItem.Initializes a new, empty instance of the ListItem class.

ListItem(Paragraph) ListItem(Paragraph) ListItem(Paragraph)

Initialise une nouvelle instance de la classe ListItem, en prenant un objet Paragraph spécifié comme contenu initial du nouveau ListItem.Initializes a new instance of the ListItem class, taking a specified Paragraph object as the initial contents of the new ListItem.

ListItem() ListItem() ListItem()

Initialise une nouvelle instance vide de la classe ListItem.Initializes a new, empty instance of the ListItem class.

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

ListItem(Paragraph) ListItem(Paragraph) ListItem(Paragraph)

Initialise une nouvelle instance de la classe ListItem, en prenant un objet Paragraph spécifié comme contenu initial du nouveau ListItem.Initializes a new instance of the ListItem class, taking a specified Paragraph object as the initial contents of the new ListItem.

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

Paramètres

paragraph
Paragraph Paragraph Paragraph Paragraph

Objet Paragraph spécifiant le contenu initial du nouveau ListItem.A Paragraph object specifying the initial contents of the new ListItem.

Exemples

L’exemple suivant illustre l’utilisation de ce constructeur.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);
' 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)

S’applique à