Class ContextMenuRenderer
Implements the renderer for metro ContextMenu customization.
Inheritance
System.Object
ContextMenuRenderer
Namespace: Syncfusion.Windows.Forms.Schedule
Assembly: Syncfusion.Schedule.Windows.dll
Syntax
public class ContextMenuRenderer : ToolStripProfessionalRenderer
Constructors
ContextMenuRenderer()
Initializes a new instance of the ContextMenuRenderer class.
Declaration
public ContextMenuRenderer()
Methods
OnRenderImageMargin(ToolStripRenderEventArgs)
Overridden to draw the rectangle.
Declaration
protected override void OnRenderImageMargin(ToolStripRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripRenderEventArgs | e | The System.Windows.Forms.ToolStripRenderEventArgs that contains the event data. |
Remarks
It will be triggered when the margin for the image is rendered.
OnRenderToolStripBorder(ToolStripRenderEventArgs)
OVerridden to call the base method.
Declaration
protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripRenderEventArgs | e | The System.Windows.Forms.ToolStripRenderEventArgs that contains the event data. |