Share via


ListItem コンストラクター

定義

ListItem クラスの新しいインスタンスを初期化します。

オーバーロード

ListItem()

ListItem クラスの新しい空のインスタンスを初期化します。

ListItem(Paragraph)

指定した ListItem オブジェクトを新しい Paragraph の初期コンテンツとして受け取って、ListItem クラスの新しいインスタンスを初期化します。

ListItem()

ListItem クラスの新しい空のインスタンスを初期化します。

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

適用対象

ListItem(Paragraph)

指定した ListItem オブジェクトを新しい Paragraph の初期コンテンツとして受け取って、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
Public Sub New (paragraph As Paragraph)

パラメーター

paragraph
Paragraph

新しい Paragraph の初期コンテンツを指定する ListItem オブジェクト。

次の例では、このコンストラクターの使用方法を示します。

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

適用対象