IRONSOFTWAREHOME
新增清單
using IronWord;
using IronWord.Models;

// Create Word doc
WordDocument doc = new WordDocument();

// Create textrun
TextContent textRun = new TextContent();
textRun.Text = "sample text";

// Create paragraph
Paragraph paragraph = new Paragraph();
paragraph.AddText(textRun);

// Create list
ListItem listItem = new ListItem(paragraph);

// Create text list
MultiLevelTextList textList = new MultiLevelTextList();
textList.AddItem(listItem);
textList.AddItem(listItem);
textList.AddItem(listItem);
textList.AddItem(listItem);

// Add text list
doc.AddMultiLevelTextList(textList);

// Export docx
doc.SaveAs("document.docx");
Imports IronWord
Imports IronWord.Models

' Create Word doc
Dim doc As New WordDocument()

' Create textrun
Dim textRun As New TextContent()
textRun.Text = "sample text"

' Create paragraph
Dim paragraph As New Paragraph()
paragraph.AddText(textRun)

' Create list
Dim listItem As New ListItem(paragraph)

' Create text list
Dim textList As New MultiLevelTextList()
textList.AddItem(listItem)
textList.AddItem(listItem)
textList.AddItem(listItem)
textList.AddItem(listItem)

' Add text list
doc.AddMultiLevelTextList(textList)

' Export docx
doc.SaveAs("document.docx")
NuGet Download
PM > Install-Package IronWord
新增清單

新增清單

在GitHub上查看

準備開始了嗎?

Nuget Downloads 56,401版本:2026.9剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
預約您的免費現場演示
Booking Badge

全球數百萬工程師信賴

Iron Software的客戶標誌
獲取您的無義務諮詢
完成以下表單或發郵件至sales@ironsoftware.com
您的詳細資訊將始終保持機密。
全球數百萬工程師信賴
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立