Class GridExcelFilterCellRenderer.ContextMenuRenderer
Implements the paining functionality of ContextMenuStrip of GridExcelFilter.
Inheritance
System.Object
GridExcelFilterCellRenderer.ContextMenuRenderer
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class ContextMenuRenderer : ToolStripProfessionalRenderer
Constructors
ContextMenuRenderer()
Initializes a new instance of the ContextMenuRenderer class.
Declaration
public ContextMenuRenderer()
Methods
OnRenderArrow(ToolStripArrowRenderEventArgs)
Used to set the arrow color.
Declaration
protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripArrowRenderEventArgs | e | The System.Windows.Forms.ToolStripRenderEventArgs that contains the event data. |
OnRenderButtonBackground(ToolStripItemRenderEventArgs)
Declaration
protected override void OnRenderButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripItemRenderEventArgs | e |
OnRenderImageMargin(ToolStripRenderEventArgs)
Used to draw the rectangle for specified margin.
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. |
OnRenderMenuItemBackground(ToolStripItemRenderEventArgs)
Declaration
protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripItemRenderEventArgs | e |
OnRenderSeparator(ToolStripSeparatorRenderEventArgs)
Used to set the backcolor.
Declaration
protected override void OnRenderSeparator(ToolStripSeparatorRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripSeparatorRenderEventArgs | e | The System.Windows.Forms.ToolStripSeparatorRenderEventArgs that contains the event data. |
OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs)
Used to set the button background color.
Declaration
protected override void OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripItemRenderEventArgs | e | The System.Windows.Forms.ToolStripItemRenderEventArgs that contains the event data. |