DataGridViewAutoSizeColumnModeEventHandler DataGridViewAutoSizeColumnModeEventHandler DataGridViewAutoSizeColumnModeEventHandler DataGridViewAutoSizeColumnModeEventHandler Delegate

定义

表示将处理 AutoSizeColumnModeChanged 控件的 DataGridView 事件的方法。Represents the method that will handle the AutoSizeColumnModeChanged event of a DataGridView control.

public delegate void DataGridViewAutoSizeColumnModeEventHandler(System::Object ^ sender, DataGridViewAutoSizeColumnModeEventArgs ^ e);
public delegate void DataGridViewAutoSizeColumnModeEventHandler(object sender, DataGridViewAutoSizeColumnModeEventArgs e);
type DataGridViewAutoSizeColumnModeEventHandler = delegate of obj * DataGridViewAutoSizeColumnModeEventArgs -> unit
Public Delegate Sub DataGridViewAutoSizeColumnModeEventHandler(sender As Object, e As DataGridViewAutoSizeColumnModeEventArgs)

参数

sender
Object Object Object Object

事件源。The source of the event.

继承
DataGridViewAutoSizeColumnModeEventHandlerDataGridViewAutoSizeColumnModeEventHandlerDataGridViewAutoSizeColumnModeEventHandlerDataGridViewAutoSizeColumnModeEventHandler

注解

AutoSizeColumnModeChanged引发事件时的值AutoSizeMode属性中的列DataGridView控件发生更改。The AutoSizeColumnModeChanged event is raised when the value of the AutoSizeMode property of a column in a DataGridView control changes.

创建 DataGridViewAutoSizeColumnModeEventHandler 委托时,需要标识将处理该事件的方法。When you create a DataGridViewAutoSizeColumnModeEventHandler delegate, you identify the method that will handle the event. 若要将事件与事件处理程序关联,请将该委托的一个实例添加到事件中。To associate the event with your event handler, add an instance of the delegate to the event. 除非移除了该委托,否则每当发生该事件时就会调用事件处理程序。The event handler is called whenever the event occurs, unless you remove the delegate. 有关事件处理程序委托的详细信息,请参阅处理和引发事件For more information about event-handler delegates, see Handling and Raising Events.

Extension Methods

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅