Control.HasEvents 方法
定義
傳回值,指出控制項或任何子控制項的事件是否已註冊。Returns a value indicating whether events are registered for the control or any child controls.
protected:
bool HasEvents();
protected bool HasEvents ();
member this.HasEvents : unit -> bool
Protected Function HasEvents () As Boolean
傳回
如果事件已註冊,則為 true
,否則為 false
。true
if events are registered; otherwise, false
.