Class ContextMenuRenderer
Provides methods used to render a System.Windows.Forms.ContextMenuStrip control with visual styles.
Inheritance
System.Object
ContextMenuRenderer
Namespace: Syncfusion.Windows.Forms.PivotAnalysis
Assembly: Syncfusion.PivotAnalysis.Windows.dll
Syntax
public class ContextMenuRenderer : ToolStripProfessionalRenderer
Constructors
ContextMenuRenderer(GridControlBase)
Initializes a new instance of the ContextMenuRenderer class with the specified GridControlBase.
Declaration
public ContextMenuRenderer(GridControlBase grid)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The GridControlBase to obtain the visual style. |
Methods
OnRenderImageMargin(ToolStripRenderEventArgs)
Draws the item background.
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)
Raises the System.Windows.Forms.ToolStripRenderer.RenderItemImage event.
Declaration
protected override void OnRenderItemImage(ToolStripItemImageRenderEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.ToolStripItemImageRenderEventArgs | e | The System.Windows.Forms.ToolStripItemImageRenderEventArgs that contains the event data. |