List 생성자

정의

List 클래스의 새 인스턴스를 초기화합니다.

오버로드

List()

List 클래스의 비어 있는 새 인스턴스를 초기화합니다.

List(ListItem)

지정된 List 개체를 새 ListItem의 초기 콘텐츠로 사용하여 List 클래스의 새 인스턴스를 초기화합니다.

List()

List 클래스의 비어 있는 새 인스턴스를 초기화합니다.

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

적용 대상

List(ListItem)

지정된 List 개체를 새 ListItem의 초기 콘텐츠로 사용하여 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)

매개 변수

listItem
ListItem

ListItem의 초기 콘텐츠를 지정하는 List 개체입니다.

예제

다음 예제에서는이 생성자의 사용을 보여 줍니다.

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

적용 대상