System.Web.UI.WebControls.ViewCollection Class

Represents a collection container that enables a System.Web.UI.WebControls.MultiView control to maintain a list of its child controls.

See Also: ViewCollection Members

Syntax

public class ViewCollection : System.Web.UI.ControlCollection

Remarks

The System.Web.UI.WebControls.ViewCollection class represents a collection container that enables a System.Web.UI.WebControls.MultiView control to maintain a list of its child controls. A System.Web.UI.WebControls.MultiView control can contain only System.Web.UI.WebControls.View controls as child controls.

Use the ViewCollection.Add(System.Web.UI.Control) method to add a new System.Web.UI.WebControls.View control to the System.Web.UI.WebControls.ViewCollection collection at the end of an ordinal index array. Use the ViewCollection.AddAt(int, System.Web.UI.Control) method to add a new control at a specific index location. Use the ViewCollection.Item(int) indexer to get a System.Web.UI.WebControls.View control from the System.Web.UI.WebControls.ViewCollection collection at a specified index, using simple array notation.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0