ToolStripSeparatorRenderEventHandler ToolStripSeparatorRenderEventHandler ToolStripSeparatorRenderEventHandler ToolStripSeparatorRenderEventHandler Delegate

定义

表示将处理 RenderSeparator 类的 ToolStripRenderer 事件的方法。Represents the method that will handle the RenderSeparator event of a ToolStripRenderer class.

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

参数

sender
Object Object Object Object

事件源。The source of the event.

继承
ToolStripSeparatorRenderEventHandlerToolStripSeparatorRenderEventHandlerToolStripSeparatorRenderEventHandlerToolStripSeparatorRenderEventHandler

注解

当您创建ToolStripSeparatorRenderEventHandler委托时,标识将处理的方法RenderSeparator事件。When you create a ToolStripSeparatorRenderEventHandler delegate, you identify the method that will handle the RenderSeparator 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.

扩展方法

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

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

适用于