Class RestrictivePanel<T>
- Namespace
- ExControls
- Assembly
- ExControls.dll
A Panel to which only controls of type T can be added.
public class RestrictivePanel<T> : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable where T : Control
Type Parameters
TThe type of the control you can add to this panel.
- Inheritance
-
RestrictivePanel<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Methods
OnControlAdded(ControlEventArgs)
Raises the ControlAdded event.
protected override void OnControlAdded(ControlEventArgs e)
Parameters
eControlEventArgsA ControlEventArgs that contains the event data.
OnControlRemoved(ControlEventArgs)
Raises the ControlRemoved event.
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
eControlEventArgsA ControlEventArgs that contains the event data.
RaiseControlAdded(T)
Raises the ControlAdded event.
protected virtual void RaiseControlAdded(T control)
Parameters
controlTThe added control.
RaiseControlRemoved(T)
Raises the ControlRemoved event.
protected virtual void RaiseControlRemoved(T control)
Parameters
controlTThe removed control.
Events
ControlAdded
Occurs when a control is added to the panel.
public event EventHandler<RestrictivePanel<T>.RestrictivePanelEventArgs<T>>? ControlAdded
Event Type
ControlRemoved
Occurs when a control is removed from the panel.
public event EventHandler<RestrictivePanel<T>.RestrictivePanelEventArgs<T>>? ControlRemoved