List Construtores
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da List classe.
Sobrecargas
| Name | Descrição |
|---|---|
| List() |
Inicializa uma nova instância vazia da List classe. |
| List(ListItem) |
Inicializa uma nova instância da List classe, tomando um objeto especificado ListItem como conteúdo inicial do novo List. |
List()
Inicializa uma nova instância vazia da List classe.
public:
List();
public List();
Public Sub New ()
Aplica-se a
List(ListItem)
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)
Parâmetros
Exemplos
O exemplo seguinte demonstra a utilização deste construtor.
// 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)