Search Results for

    Show / Hide Table of Contents

    Class ListItem

    Represents an item in a multi-level list within the document.

    Inheritance
    System.Object
    ContentElement
    ParentElement
    ListItem
    Implements
    IronSoftware.Abstractions.Word.IWordDocumentObject
    IronSoftware.Abstractions.IDocumentObject
    System.ICloneable
    IronSoftware.Abstractions.IParent<IronSoftware.Abstractions.Word.IWordDocumentObjectCollection, IronSoftware.Abstractions.Word.IWordDocumentObject>
    Inherited Members
    ParentElement.AddChild(IWordDocumentObject[])
    ParentElement.InsertChildToIndex(Int32, IWordDocumentObject[])
    ParentElement.Remove()
    ParentElement.RemoveChildren(IWordDocumentObject[])
    ParentElement.RemoveAllChildren()
    ParentElement.ExtractElements<T>()
    ParentElement.GetChildByIndex<T>(Int32)
    ParentElement.Clone()
    ParentElement.CloneObject()
    ParentElement.LogObjectTree()
    ParentElement.Texts
    ParentElement.Tables
    ParentElement.Children
    ContentElement.Replace(IWordDocumentObject)
    ContentElement.GetIndex<T>()
    ContentElement.Parent
    ContentElement.Status
    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<, >

    Inherited members

    AddChild(IWordDocumentObject[])
    InsertChildToIndex(Int32, IWordDocumentObject[])
    Remove()
    RemoveChildren(IWordDocumentObject[])
    RemoveAllChildren()
    ExtractElements<T>()
    GetChildByIndex<T>(Int32)
    Clone()
    CloneObject()
    LogObjectTree()
    Texts
    Tables
    Children
    Replace(IWordDocumentObject)
    GetIndex<T>()
    Parent
    Status
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronWord to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWord free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.