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

Restricts a RadPageView control collection to pages and hosted text boxes while raising page lifecycle events.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadPageViewControlCollection : Control.ControlCollection, IList, ICollection, IEnumerable, ICloneable

Inheritance: objectArrangedElementCollectionControl.ControlCollectionRadPageViewControlCollection

Implements: ICloneableICollectionIEnumerableIList

Inherited Members ArrangedElementCollection.Equals(object)ArrangedElementCollection.GetHashCode()ArrangedElementCollection.CopyTo(Array, int)ArrangedElementCollection.GetEnumerator()ArrangedElementCollection.IsReadOnlyArrangedElementCollection.Count...

Constructors

Creates the control collection for the specified page view.

C#
public RadPageViewControlCollection(RadPageView owner)
Parameters:ownerRadPageView

The page view whose controls are managed by this collection.

Methods

Adds a hosted text box directly, or adds a page after the view's cancellable PageAdding event.

C#
public override void Add(Control value)
Parameters:valueControl

A page or hosted text box to add.

Exceptions: ArgumentException

The control is neither a page nor a hosted text box.

Overrides: Control.ControlCollection.Add(Control)

For a non-empty collection, removes all controls unless the view's PagesClearing event cancels the operation. Raises PagesCleared after a successful clear.

C#
public override void Clear()

Overrides: Control.ControlCollection.Clear()

Removes a hosted text box directly, or removes a page after the view's cancellable PageRemoving event.

C#
public override void Remove(Control value)
Parameters:valueControl

The page or hosted text box to remove.

Exceptions: ArgumentException

The control is neither a page nor a hosted text box.

Overrides: Control.ControlCollection.Remove(Control)

Changes a page's index only when the view has enabled an intentional page reorder; the view's index-changing event can cancel it.

C#
public override void SetChildIndex(Control child, int newIndex)
Parameters:childControl

The page to move.

newIndexint

The requested zero-based index.

Overrides: Control.ControlCollection.SetChildIndex(Control, int)