Class ListLevelCollection
Represents a ListLevelCollection.
Inherited Members
Namespace: DRIT.Document.Lists
Assembly: DRIT.Document.dll
Syntax
public class ListLevelCollection : IEnumerable<ListLevel>, IEnumerable
Properties
Count
Gets count.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets this[int].
Declaration
public ListLevel this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| ListLevel |
Methods
Add(ListLevel)
Adds a list level to the collection.
Declaration
public void Add(ListLevel level)
Parameters
| Type | Name | Description |
|---|---|---|
| ListLevel | level | The list level to add. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<ListLevel> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ListLevel> | The resulting value. |
GetOrAdd(int)
Gets an existing level or creates levels through the requested index.
Declaration
public ListLevel GetOrAdd(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based level index. |
Returns
| Type | Description |
|---|---|
| ListLevel | The level at |
RemoveAt(int)
Removes the level at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based level index. |