Class ListLevelAdvCollection
Represents a collection of ListLevelAdv elements.
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public class ListLevelAdvCollection : BaseNodeCollectionConstructors
ListLevelAdvCollection(BaseNode)
Initializes a new instance of the ListLevelAdvCollection class for the specified BaseNode.
Declaration
public ListLevelAdvCollection(BaseNode owner)Parameters
| Type | Name | Description | 
|---|---|---|
| BaseNode | owner | The owner of the ListLevelAdvCollection. The value can be null or an instance of AbstractListAdv. | 
ListLevelAdvCollection(BaseNode, IEnumerable<ListLevelAdv>)
Initializes a new instance of the ListLevelAdvCollection class that contains list levels
copied from the specified collection for the specified BaseNode.
Declaration
public ListLevelAdvCollection(BaseNode owner, IEnumerable<ListLevelAdv> collection)Parameters
| Type | Name | Description | 
|---|---|---|
| BaseNode | owner | The owner of the ListLevelAdvCollection. The value can be null or an instance of ListAdv. | 
| System.Collections.Generic.IEnumerable<ListLevelAdv> | collection | The collection from which the list levels are copied. | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | The collection parameter cannot be null. | 
Properties
Item[Int32]
Gets the ListLevelAdv at the specified index in the ListLevelAdvCollection.
Declaration
public ListLevelAdv this[int index] { get; }Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | The zero-based index of the ListLevelAdv instance to get. | 
Property Value
| Type | Description | 
|---|---|
| ListLevelAdv | The ListLevelAdv instance at the specified  | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentOutOfRangeException | Index was out of range. Must be non-negative and less than the size of the collection. | 
Methods
Add(BaseNode)
Adds the specified ListLevelAdv to the end of the ListLevelAdvCollection.
Declaration
public void Add(BaseNode listLevelAdv)Parameters
| Type | Name | Description | 
|---|---|---|
| BaseNode | listLevelAdv | The ListLevelAdv instance to be added to the end of the ListLevelAdvCollection. | 
Insert(Int32, BaseNode)
Inserts the specified ListLevelAdv into the ListLevelAdvCollection at the specified index.
Declaration
public void Insert(int index, BaseNode listLevelAdv)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | The zero-based index at which the ListLevelAdv should be inserted. | 
| BaseNode | listLevelAdv | The ListLevelAdv instance to insert. | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentOutOfRangeException | Index was out of range. Must be non-negative and less than the size of the collection. | 
Remove(BaseNode)
Removes the first occurrence of the specified ListLevelAdv from the ListLevelAdvCollection.
Declaration
public bool Remove(BaseNode listLevelAdv)Parameters
| Type | Name | Description | 
|---|---|---|
| BaseNode | listLevelAdv | The ListLevelAdv instance to remove from the ListLevelAdvCollection. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True, if the specified ListLevelAdv is successfully removed. Otherwise, false. This method also returns false if specified ListLevelAdv was not found in the original ListLevelAdvCollection. | 
RemoveAt(Int32)
Removes the ListLevelAdv instance at the specified index of the ListLevelAdvCollection.
Declaration
public void RemoveAt(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | The zero-based index of the ListLevelAdv instance to remove. | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentOutOfRangeException | Index is less than zero.-or-Index is equal to or greater than item count. |