Class ListItem
Represents an item in a multi-level list within the document.
Implements
IronSoftware.Abstractions.Word.IWordDocumentObject
IronSoftware.Abstractions.IDocumentObject
System.ICloneable
IronSoftware.Abstractions.IParent<IronSoftware.Abstractions.Word.IWordDocumentObjectCollection, IronSoftware.Abstractions.Word.IWordDocumentObject>
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class ListItem : ParentElement, IWordDocumentObject, IDocumentObject, ICloneable, IParent<IWordDocumentObjectCollection, IWordDocumentObject>
Constructors
ListItem(MultiLevelTextList)
Initializes a new instance of the ListItem class with the specified child elements.
Declaration
public ListItem(MultiLevelTextList subMultiLevelTextList)
Parameters
| Type | Name | Description |
|---|---|---|
| MultiLevelTextList | subMultiLevelTextList | The child elements to be added. |
ListItem(Paragraph)
Initializes a new instance of the ListItem class with the specified child elements.
Declaration
public ListItem(Paragraph paragraph)
Parameters
| Type | Name | Description |
|---|---|---|
| Paragraph | paragraph | The child elements to be added. |
Properties
Index
Gets the index of this list item.
Declaration
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
AddSubMultiLevelTextList(MultiLevelTextList)
Add a sub multi-level text list.
Declaration
public void AddSubMultiLevelTextList(MultiLevelTextList subMultiLevelTextList)
Parameters
| Type | Name | Description |
|---|---|---|
| MultiLevelTextList | subMultiLevelTextList | The child elements to be added. |
RemoveSubMultiLevelTextList()
Removes the sub multi-level text list from this item if this item contains one.
Declaration
public void RemoveSubMultiLevelTextList()
Update(Paragraph)
Update the contents in the list item.
Declaration
public void Update(Paragraph paragraph)
Parameters
| Type | Name | Description |
|---|---|---|
| Paragraph | paragraph | The paragraph used to update current item content. |
Implements
IronSoftware.Abstractions.Word.IWordDocumentObject
IronSoftware.Abstractions.IDocumentObject
System.ICloneable
IronSoftware.Abstractions.IParent<, >