ClassReadOnlyControlCollection
A control collection that can be set to read-only mode to prevent modifications.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class ReadOnlyControlCollection : Control.ControlCollection, IList, ICollection, IEnumerable, ICloneable
Inheritance: objectArrangedElementCollectionControl.ControlCollectionReadOnlyControlCollection
Derived Classes:
Implements:
Inherited Members
Constructors
ReadOnlyControlCollection(Control, bool)
Initializes a new instance of the ReadOnlyControlCollection class.
Properties
IsReadOnly
Declaration
public override bool IsReadOnly { get; }
Property Value
Overrides
Methods
Add(Control)
Adds a control to the collection, throwing an exception if the collection is read-only.
Declaration
public override void Add(Control value)
Parameters
value
The control to add to the collection.
Exceptions
Thrown when the collection is read-only.
Overrides
AddInternal(Control)
Adds a control to the collection without checking read-only status.
Declaration
public virtual void AddInternal(Control value)
Parameters
value
The control to add to the collection.
Remarks
This method bypasses the read-only check and is used internally when controlled modifications are needed.
Clear()
Declaration
public override void Clear()
Overrides
RemoveByKey(string)
Declaration
public override void RemoveByKey(string key)
Parameters
key
Overrides
RemoveInternal(Control)
Declaration
public virtual void RemoveInternal(Control value)
Parameters
value