ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) Method

定义

ToolStrip 上绘制一个移动手柄。Draws a move handle on a ToolStrip.

public:
 void DrawGrip(System::Windows::Forms::ToolStripGripRenderEventArgs ^ e);
public void DrawGrip (System.Windows.Forms.ToolStripGripRenderEventArgs e);
member this.DrawGrip : System.Windows.Forms.ToolStripGripRenderEventArgs -> unit
Public Sub DrawGrip (e As ToolStripGripRenderEventArgs)

参数

e
ToolStripGripRenderEventArgs ToolStripGripRenderEventArgs ToolStripGripRenderEventArgs ToolStripGripRenderEventArgs

一个 ToolStripGripRenderEventArgs,其中包含用于绘制移动手柄的数据。A ToolStripGripRenderEventArgs that contains the data to draw the move handle.

注解

方法为位于ToolStrip上的移动手柄提供呈现代码的入口点。 DrawGripThe DrawGrip method provides an entry point to the rendering code for a move handle located on a ToolStrip. 在重写ToolStrip.OnPaintGrip方法时使用此方法, 或强制在自定义ToolStripRenderer中绘制移动句柄。Use this method when overriding the ToolStrip.OnPaintGrip method, or to force a move handle to be drawn in a custom ToolStripRenderer. 若要更改移动句柄的呈现方式, 请重OnRenderGrip写派生自ToolStripRenderer的类中的方法。To change the way a move handle is rendered, override the OnRenderGrip method in a class derived from ToolStripRenderer.

适用于