QuestionEventHandler 委托
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示将处理 CancelRowEdit 事件或 RowDirtyStateNeeded 事件 DataGridView的方法。
public delegate void QuestionEventHandler(System::Object ^ sender, QuestionEventArgs ^ e);
public delegate void QuestionEventHandler(object sender, QuestionEventArgs e);
public delegate void QuestionEventHandler(object? sender, QuestionEventArgs e);
type QuestionEventHandler = delegate of obj * QuestionEventArgs -> unit
Public Delegate Sub QuestionEventHandler(sender As Object, e As QuestionEventArgs)
参数
- sender
- Object
事件源。
包含事件数据的 A QuestionEventArgs 。
注解
创建 QuestionEventHandler 委托时,可以标识将处理事件的方法。 若要将事件与事件处理程序相关联,请将委托的实例添加到事件。 除非删除委托,否则每当事件发生时调用事件处理程序。 有关事件处理程序委托的详细信息,请参阅 处理和引发事件。
在控件中 DataGridView 实现虚拟模式时,使用此委托。
扩展方法
| 名称 | 说明 |
|---|---|
| GetMethodInfo(Delegate) |
获取一个对象,该对象表示由指定委托表示的方法。 |