Table of Contents

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

T

The 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

e ControlEventArgs

A ControlEventArgs that contains the event data.

OnControlRemoved(ControlEventArgs)

Raises the ControlRemoved event.

protected override void OnControlRemoved(ControlEventArgs e)

Parameters

e ControlEventArgs

A ControlEventArgs that contains the event data.

RaiseControlAdded(T)

Raises the ControlAdded event.

protected virtual void RaiseControlAdded(T control)

Parameters

control T

The added control.

RaiseControlRemoved(T)

Raises the ControlRemoved event.

protected virtual void RaiseControlRemoved(T control)

Parameters

control T

The removed control.

Events

ControlAdded

Occurs when a control is added to the panel.

public event EventHandler<RestrictivePanel<T>.RestrictivePanelEventArgs<T>>? ControlAdded

Event Type

EventHandler<RestrictivePanel<T>.RestrictivePanelEventArgs<T>>

ControlRemoved

Occurs when a control is removed from the panel.

public event EventHandler<RestrictivePanel<T>.RestrictivePanelEventArgs<T>>? ControlRemoved

Event Type

EventHandler<RestrictivePanel<T>.RestrictivePanelEventArgs<T>>