ParentControlDesigner.CanAddComponent(IComponent) Metodo
Definizione
Chiamato quando un componente viene aggiunto al contenitore padre.Called when a component is added to the parent container.
protected public:
virtual bool CanAddComponent(System::ComponentModel::IComponent ^ component);
protected internal virtual bool CanAddComponent (System.ComponentModel.IComponent component);
abstract member CanAddComponent : System.ComponentModel.IComponent -> bool
override this.CanAddComponent : System.ComponentModel.IComponent -> bool
Protected Friend Overridable Function CanAddComponent (component As IComponent) As Boolean
Parametri
- component
- IComponent
Componente di cui verificare l'eventuale presenza di errori.The component to test for errors.
Restituisce
true
se component
può essere aggiunti; in caso contrario, false
.true
if component
can be added; otherwise, false
.
Commenti
Simile al metodo IsDropOK, ma consente messaggi di errore specifici.Similar to the IsDropOK method, but allows for specific error messages. Questo metodo offre la possibilità di visualizzare lo stesso errore visualizzato in fase di esecuzione.This method provides a chance to display the same error as is displayed at runtime.