Search Results for

    Show / Hide Table of Contents

    Class ListItem

    Represents an Item of Multi Level List class within the document.

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

    Inherited members

    AddChild(ContentElement[])
    InsertChildToIndex(Int32, ContentElement[])
    Remove()
    RemoveChildren(ContentElement[])
    RemoveAllChildren()
    ExtractElements<T>()
    GetChildByIndex<T>(Int32)
    Clone()
    CloneObject()
    LogObjectTree()
    DefaultTextStyle
    Texts
    Tables
    Children
    Status
    Replace(ContentElement)
    GetIndex<T>()
    Parent
    ObjNum
    PageIndex
    DocumentId
    ☀
    ☾
    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.