Class ListItem
Represents an Item of Multi Level List class within the document.
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class ListItem : ParentElement, IDocumentElement, IDocumentObject, ICloneable
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 MultiLevelTextList within the parent's list of children.
Declaration
public int Index { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
AddSubMultiLevelTextList(MultiLevelTextList)
Add the SubMultiLevelTextList to the ListItem class.
Declaration
public void AddSubMultiLevelTextList(MultiLevelTextList subMultiLevelTextList)
Parameters
| Type | Name | Description |
|---|---|---|
| MultiLevelTextList | subMultiLevelTextList | The child elements to be added. |
RemoveSubMultiLevelTextList()
Removes the SubMultiLevelTextList from this item if item included SubMultiLevelTextList.
Declaration
public void RemoveSubMultiLevelTextList()
Update(Paragraph)
Update the Item content
Declaration
public void Update(Paragraph paragraph)
Parameters
| Type | Name | Description |
|---|---|---|
| Paragraph | paragraph | The paragraph using to update current item content |
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable