SplitPanelCollection
Provides ordered access to the child panels owned by a RadSplitContainer.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SplitPanelCollection : IList, ICollection, IEnumerable
Inheritance: objectSplitPanelCollection
Implements:
Constructors
Creates a collection backed by the specified split container's child controls.
public SplitPanelCollection(RadSplitContainer owner)
The container whose child panels are exposed.
Properties
Gets the number of child controls currently owned by the container.
public int Count { get; }
Implements:
Gets whether the collection is read-only; this collection allows changes.
public bool IsReadOnly { get; }
Implements:
Gets or replaces the panel at the specified position. Setting removes the existing control, adds the new panel, and restores it to the requested child index.
public virtual SplitPanel this[int index] { get; set; }
The zero-based position of the panel.
Methods
Adds a panel to the end of the owning container's child-control collection.
public void Add(SplitPanel value)
The panel to add.
Exceptions: ArgumentNullExceptionvalue is null.
Adds each panel from the sequence to the end of the owning container's child-control collection.
public void AddRange(IEnumerable<SplitPanel> splitPanels)
The panels to add.
Exceptions: ArgumentNullExceptionsplitPanels is null.
Removes all child controls from the owning container.
public void Clear()
Implements:
Determines whether the specified panel instance is in this collection.
public bool Contains(SplitPanel spliPanel)
The panel to locate.
Returns:true when the panel is present.
Exceptions: ArgumentNullExceptionspliPanel is null.
Finds the position of the specified panel instance.
public int IndexOf(SplitPanel splitPanel)
The panel to find.
Returns:The zero-based position, or -1 when the panel is not in this collection.
Exceptions: ArgumentNullExceptionsplitPanel is null.
Adds the specified panel to the owner and moves it to the requested position.
public void Insert(int index, SplitPanel splitPanel)
The zero-based position at which to insert the panel.
splitPanelSplitPanelThe panel to insert.
Creates a panel with the specified name and text, then inserts it at the requested position.
Removes the panel at the specified position from the owner.
public void RemoveAt(int index)
The zero-based position of the panel to remove.
Implements:
Removes the panel with the specified name, using a case-insensitive lookup; does nothing when no panel matches.