ToolStripRenderer.DrawGrip(ToolStripGripRenderEventArgs) 方法

定义

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,其中包含用于绘制移动手柄的数据。A ToolStripGripRenderEventArgs that contains the data to draw the move handle.

注解

DrawGrip 方法为位于 ToolStrip的移动手柄提供呈现代码的入口点。The 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. 若要更改移动句柄的呈现方式,请重写从 ToolStripRenderer派生的类中的 OnRenderGrip 方法。To change the way a move handle is rendered, override the OnRenderGrip method in a class derived from ToolStripRenderer.

适用于