Class OdfListItem
Represents an item within a list. 表示清單中的清單專案。
public class OdfListItem
- Inheritance
-
OdfListItem
- Inherited Members
Constructors
OdfListItem(OdfNode, TextDocument)
Represents an item within a list. 表示清單中的清單專案。
public OdfListItem(OdfNode node, TextDocument doc)
Parameters
nodeOdfNodeThe OdfKit.DOM.OdfNode associated with this list item. / 與此清單專案相關聯的 OdfNode 節點。
docTextDocumentThe owning text document. / 所屬的文字文件。
Properties
Paragraphs
Gets the list of paragraphs within the list item. 取得清單專案中的段落清單。
public IReadOnlyList<OdfParagraph> Paragraphs { get; }
Property Value
StartValue
Gets or sets the start value of this list item. 取得或設定此清單專案的起始數值。
public int? StartValue { get; set; }
Property Value
- int?
Methods
AddNestedList()
Short overload of AddNestedList that uses default values for all optional parameters and forwards to the full overload. 便利多載:AddNestedList 的所有可選參數使用預設值並轉呼叫最長多載。
public OdfList AddNestedList()
Returns
AddNestedList(string?)
Adds a nested list to the list item. 在清單專案中新增巢狀清單。
public OdfList AddNestedList(string? styleName)
Parameters
styleNamestringThe nested list style name. / 專案清單樣式名稱。
Returns
- OdfList
The newly created nested list instance. / 新建立的巢狀清單執行個體。
AddParagraph()
Short overload of AddParagraph that uses default values for all optional parameters and forwards to the full overload. 便利多載:AddParagraph 的所有可選參數使用預設值並轉呼叫最長多載。
public OdfParagraph AddParagraph()
Returns
AddParagraph(string)
Adds a paragraph to the list item. 在清單專案中新增段落。
public OdfParagraph AddParagraph(string text)
Parameters
textstringThe default paragraph content. / 段落的預設內文。
Returns
- OdfParagraph
The created paragraph object. / 建立的段落物件。