ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) Method

Definition

Draws a move handle on a ToolStrip.

C#
public void DrawGrip(System.Windows.Forms.ToolStripGripRenderEventArgs e);

Parameters

e
ToolStripGripRenderEventArgs

A ToolStripGripRenderEventArgs that contains the data to draw the move handle.

Remarks

The DrawGrip method provides an entry point to the rendering code for a move handle located on a ToolStrip. Use this method when overriding the ToolStrip.OnPaintGrip method, or to force a move handle to be drawn in a custom ToolStripRenderer. To change the way a move handle is rendered, override the OnRenderGrip method in a class derived from ToolStripRenderer.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9