Search Results for

    Show / Hide Table of Contents

    Class MultiLevelTextList

    Represents a Multi Level List within the document.

    Inheritance
    System.Object
    ContentElement
    ParentElement
    MultiLevelTextList
    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 MultiLevelTextList : ParentElement, IDocumentElement, IDocumentObject, ICloneable

    Constructors

    MultiLevelTextList()

    Initializes a new instance of the MultiLevelTextList class.

    Declaration
    public MultiLevelTextList()

    MultiLevelTextList(ListItem[])

    Initializes a new instance of the MultiLevelTextList class with the specified ListItems as child elements.

    Declaration
    public MultiLevelTextList(params ListItem[] children)
    Parameters
    Type Name Description
    ListItem[] children

    The child elements to be added.

    Properties

    HangingIndentation

    Gets or sets the hanging indentation for a multilevel list.

    Declaration
    public double HangingIndentation { get; set; }
    Property Value
    Type Description
    System.Double
    Remarks

    The indentation is measured in inches by default and converted to twips when accessed or modified.

    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

    Items

    Gets the list of ListItem contained within this MultiLevelTextList.

    Declaration
    public List<ListItem> Items { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<ListItem>

    Justification

    Gets or sets the justification for the text in a multilevel list.

    Declaration
    public JustificationValues Justification { get; set; }
    Property Value
    Type Description
    JustificationValues

    ListType

    Gets or sets the type of numbering or bullet for a multilevel list.

    Declaration
    public NumberFormatValues ListType { get; set; }
    Property Value
    Type Description
    NumberFormatValues

    NumberingId

    Declaration
    protected int NumberingId { get; set; }
    Property Value
    Type Description
    System.Int32

    StartIndentation

    Gets or sets the starting indentation for a multilevel list.

    Declaration
    public double StartIndentation { get; set; }
    Property Value
    Type Description
    System.Double
    Remarks

    The indentation is measured in inches by default and converted to twips when accessed or modified.

    StartNumberingValue

    Gets or sets the starting value for numbering in a multilevel list.

    Declaration
    public int StartNumberingValue { get; set; }
    Property Value
    Type Description
    System.Int32

    SymbolText

    Gets or sets the SymbolText for a specific level in a multilevel list.

    Declaration
    public string SymbolText { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The SymbolText property defines the format of the numbering or bullet text for a specific level in a multilevel list.

    SymbolTextFontName

    Gets or sets the SymbolText font for a specific level in a multilevel list.

    Declaration
    public string SymbolTextFontName { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The SymbolTextFontName property defines the SymbolText font for a specific level in a multilevel list.

    Methods

    AddItem(ListItem)

    Adds a new ListItem to this MultiLevelTextList.

    Declaration
    public void AddItem(ListItem item)
    Parameters
    Type Name Description
    ListItem item

    Clear(ListItem)

    Removes all ListItems from this MultiLevelTextList.

    Declaration
    public void Clear(ListItem item)
    Parameters
    Type Name Description
    ListItem item

    GetHangingIndentation(MeasurementUnit)

    Gets the hanging indentation for a multilevel list.

    Declaration
    public double GetHangingIndentation(MeasurementUnit measurementUnit)
    Parameters
    Type Name Description
    MeasurementUnit measurementUnit

    The measurement unit for the indentation. Default is Twips.

    Returns
    Type Description
    System.Double

    The hanging indentation value in the specified measurement unit.

    GetStartIndentation(MeasurementUnit)

    Gets the starting indentation for a multilevel list.

    Declaration
    public double GetStartIndentation(MeasurementUnit measurementUnit)
    Parameters
    Type Name Description
    MeasurementUnit measurementUnit

    The measurement unit for the indentation. Default is Twips.

    Returns
    Type Description
    System.Double

    The starting indentation value in the specified measurement unit.

    RemoveItem(ListItem)

    Removes a ListItem from this MultiLevelTextList.

    Declaration
    public void RemoveItem(ListItem item)
    Parameters
    Type Name Description
    ListItem item

    SetHangingIndentation(Double, MeasurementUnit)

    Sets the hanging indentation for a multilevel list.

    Declaration
    public void SetHangingIndentation(double hangingIndentation, MeasurementUnit measurementUnit)
    Parameters
    Type Name Description
    System.Double hangingIndentation

    The hanging indentation value.

    MeasurementUnit measurementUnit

    The measurement unit for the indentation. Default is Twips.

    SetStartIndentation(Double, MeasurementUnit)

    Sets the starting indentation for a multilevel list.

    Declaration
    public void SetStartIndentation(double startIndentation, MeasurementUnit measurementUnit)
    Parameters
    Type Name Description
    System.Double startIndentation

    The starting indentation value.

    MeasurementUnit measurementUnit

    The measurement unit for the indentation. Default is Twips.

    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.