C# Class ComponentFactory.Krypton.Toolkit.KryptonReadOnlyControls

Restrict a controls collection of child controls.
Inheritance: KryptonControlCollection
Mostra file Open project: ComponentFactory/Krypton

Private Properties

Property Type Description

Public Methods

Method Description
Add ( Control value ) : void

Adds the specified control to the control collection.

AddRange ( Control controls ) : void

Adds an array of control objects to the collection.

Clear ( ) : void

Removes all controls from the collection.

KryptonReadOnlyControls ( Control owner ) : System

Initialize a new instance of the KryptonReadOnlyControls class.

Remove ( Control value ) : void

Removes the specified control from the control collection.

RemoveByKey ( string key ) : void

Removes the child control with the specified key.

Method Details

Add() public method

Adds the specified control to the control collection.
public Add ( Control value ) : void
value System.Windows.Forms.Control The Control to add to the control collection.
return void

AddRange() public method

Adds an array of control objects to the collection.
public AddRange ( Control controls ) : void
controls System.Windows.Forms.Control An array of Control objects to add to the collection.
return void

Clear() public method

Removes all controls from the collection.
public Clear ( ) : void
return void

KryptonReadOnlyControls() public method

Initialize a new instance of the KryptonReadOnlyControls class.
public KryptonReadOnlyControls ( Control owner ) : System
owner System.Windows.Forms.Control Owning control.
return System

Remove() public method

Removes the specified control from the control collection.
public Remove ( Control value ) : void
value System.Windows.Forms.Control The Control to remove from the Control.ControlCollection.
return void

RemoveByKey() public method

Removes the child control with the specified key.
public RemoveByKey ( string key ) : void
key string The name of the child control to remove.
return void