Class ContextMenuRenderer
Provides the functionalities of context menu for filter cell.
Inheritance
System.Object
ContextMenuRenderer
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class ContextMenuRenderer : ToolStripProfessionalRenderer
Constructors
ContextMenuRenderer(GridControlBase, GridListFilterBarCellRenderer)
Initializes a new instance of the ContextMenuRenderer class.
Declaration
public ContextMenuRenderer(GridControlBase grid, GridListFilterBarCellRenderer render)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase to display the context menu. |
GridListFilterBarCellRenderer | render | The GridListFilterBarCellRenderer for displaying context menu. |
Methods
OnRenderImageMargin(ToolStripRenderEventArgs)
Is triggered when the margin for the image is rendered.
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. |
OnRenderItemImage(ToolStripItemImageRenderEventArgs)
Renders the image with different attributes
Declaration
protected override void OnRenderItemImage(ToolStripItemImageRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripItemImageRenderEventArgs | e | The System.Windows.Forms.ToolStripRenderEventArgs that contains the event data. |