Class ChildCollection
Represents a collection of objects that can be individually accessed by index in the SfNavigator control.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class ChildCollection : Object, IList<object>, ICollection<object>, IEnumerable<object>, IEnumerable
Constructors
ChildCollection()
Declaration
public ChildCollection()
Properties
Count
Gets the count of the children
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
IsReadOnly
Gets a value IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
Item[Int32]
Gets or sets the children at the index position
Declaration
public object this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index value |
Property Value
Type | Description |
---|---|
System.Object | returns the children at the index position |
Methods
Add(Object)
Add an item to children
Declaration
public void Add(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | input item |
Clear()
Clears the children
Declaration
public void Clear()
Contains(Object)
Checks if the children contains the given item
Declaration
public bool Contains(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | input item |
Returns
Type | Description |
---|---|
System.Boolean |
|
CopyTo(Object[], Int32)
Copies an item to the children
Declaration
public void CopyTo(object[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | array | object array collection |
System.Int32 | arrayIndex | index in the array |
GetEnumerator()
Gets the children enumerator
Declaration
public IEnumerator<object> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Object> | returns the children enumerator |
IndexOf(Object)
Gets the index of the item
Declaration
public int IndexOf(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | input item |
Returns
Type | Description |
---|---|
System.Int32 | returns index of item |
Insert(Int32, Object)
Inserts an item in the particular index
Declaration
public void Insert(int index, object item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index value to insert |
System.Object | item | input item |
Remove(Object)
Removes an item from the children
Declaration
public bool Remove(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | input item |
Returns
Type | Description |
---|---|
System.Boolean | returns boolean value whether item is removed or not |
RemoveAt(Int32)
Removes an item in the particular index
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | index value |