Class MultiLevelTextList
Represents a Multi Level List within the document.
Implements
Inherited Members
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. |