New to Telerik UI for WinForms? Start a free 30-day trial

Maintains the child-page hierarchy for a page, which is used by the NavigationView.

Definition

Constructors

Creates a child-page collection for the specified owner page.

C#
public RadPageViewSubPageCollection(RadPageViewPage owner)
Parameters:ownerRadPageViewPage

The page that owns the child pages.

Properties

Gets the number of child pages owned by this page.

C#
public int Count { get; }

Implements: ICollection.Count

C#
public bool IsFixedSize { get; }

Implements: IList.IsFixedSize

C#
public bool IsReadOnly { get; }

Implements: IList.IsReadOnly

C#
public bool IsSynchronized { get; }

Implements: ICollection.IsSynchronized

Gets the RadPageViewPage instance that this collection is associated with.

C#
public RadPageViewPage Owner { get; }
C#
public object SyncRoot { get; }

Implements: ICollection.SyncRoot

Gets the child page at the specified zero-based index; replacing a child through the indexer is not supported.

C#
public RadPageViewPage this[int index] { get; set; }
Parameters:indexint

The zero-based child-page index.

Exceptions: InvalidOperationException

The indexer setter is used.

Gets the child page whose control name matches the specified name.

C#
public RadPageViewPage this[string name] { get; }
Parameters:namestring

The name to find.

Property Value:

The matching child page, or null if no page has that name.

Methods

Adds the supplied page as a child and returns its resulting index.

C#
public int Add(object value)
Parameters:valueobject

The child page to add.

Returns:

int

The zero-based index of the added page.

Implements: IList.Add(object)

Adds a page under this owner, detaching it from any previous parent and rejecting self-parenting or a direct two-page cycle. If the owner is already in a view, the child is also added to that view unless the view's PageAdding event cancels the addition.

C#
public void Add(RadPageViewPage item)
Parameters:itemRadPageViewPage

The page to add as a child.

Removes all child pages and clears their OwnerPage references.

C#
public void Clear()

Implements: IList.Clear()

Determines whether this collection contains the supplied child page.

C#
public bool Contains(object value)
Parameters:valueobject

The page to locate.

Returns:

bool

true if the page is present; otherwise, false.

Implements: IList.Contains(object)

Determines whether this collection contains the specified child page.

C#
public bool Contains(RadPageViewPage item)
Parameters:itemRadPageViewPage

The page to locate.

Returns:

bool

true if the page is present; otherwise, false.

Determines whether a child page with the specified name exists.

C#
public bool Contains(string name)
Parameters:namestring

The page name to find.

Returns:

bool

true if a matching page exists; otherwise, false.

Copies the child pages into an array starting at the specified destination index.

C#
public void CopyTo(Array array, int index)
Parameters:arrayArray

The destination array.

indexint

The zero-based destination index at which copying begins.

Implements: ICollection.CopyTo(Array, int)

Copies the child pages into a typed array starting at the specified destination index.

C#
public void CopyTo(RadPageViewPage[] array, int arrayIndex)
Parameters:arrayRadPageViewPage[]

The destination array.

arrayIndexint

The zero-based destination index at which copying begins.

Enumerates the child pages in their current hierarchy order.

C#
public IEnumerator<RadPageViewPage> GetEnumerator()
Returns:

IEnumerator<RadPageViewPage>

An enumerator over the child pages.

Gets the zero-based position of the supplied child page in this collection.

C#
public int IndexOf(object value)
Parameters:valueobject

The page to locate.

Returns:

int

The page index, or -1 if it is not present.

Implements: IList.IndexOf(object)

Gets the zero-based position of a child page in this collection.

C#
public int IndexOf(RadPageViewPage item)
Parameters:itemRadPageViewPage

The page to locate.

Returns:

int

The page index, or -1 if it is not present.

Inserts the supplied page as a child at the specified position.

C#
public void Insert(int index, object value)
Parameters:indexint

The zero-based insertion position.

valueobject

The child page to insert.

Implements: IList.Insert(int, object)

Inserts a page at the specified position, detaching it from any previous parent and rejecting self-parenting or a direct two-page cycle. If the owner is already in a view, the child is also added to that view unless the view's PageAdding event cancels the addition.

C#
public void Insert(int index, RadPageViewPage item)
Parameters:indexint

The zero-based insertion position.

itemRadPageViewPage

The page to insert as a child.

Moves a child page from one position in the hierarchy to another.

C#
public void Move(int oldIndex, int newIndex)
Parameters:oldIndexint

The current zero-based index.

newIndexint

The destination zero-based index.

Notifies the owner page and subscribers when the child-page collection changes.

C#
protected virtual void OnChildPagesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters:senderobject

The collection that changed.

eNotifyCollectionChangedEventArgs

The collection-change details.

Removes the supplied page from this child-page collection.

C#
public void Remove(object value)
Parameters:valueobject

The child page to remove.

Implements: IList.Remove(object)

Removes a child page and clears its OwnerPage reference.

C#
public bool Remove(RadPageViewPage item)
Parameters:itemRadPageViewPage

The page to remove.

Returns:

bool

true if the page was present in this collection; otherwise, false.

Removes the child page at the specified index and clears its owner-page reference.

C#
public void RemoveAt(int index)
Parameters:indexint

The zero-based index of the child page to remove.

Implements: IList.RemoveAt(int)

Events

Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.

C#
public event NotifyCollectionChangedEventHandler CollectionChanged