ToolStripRenderer.DrawArrow(ToolStripArrowRenderEventArgs) 方法

定义

ToolStripItem 上绘制一个箭头。Draws an arrow on a ToolStripItem.

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

参数

e
ToolStripArrowRenderEventArgs

一个 ToolStripArrowRenderEventArgs,其中包含用于绘制箭头的数据。A ToolStripArrowRenderEventArgs that contains data to draw the arrow.

注解

DrawArrow 方法提供箭头呈现代码的入口点。The DrawArrow method provides an entry point to the arrow rendering code. 当重写 ToolStripItem.OnPaint 方法时,使用此方法绘制一个箭头,或强制在自定义 ToolStripRenderer中绘制箭头。Use this method to draw an arrow when overriding the ToolStripItem.OnPaint method, or to force an arrow to be drawn in a custom ToolStripRenderer. 若要更改箭头的呈现方式,请重写从 ToolStripRenderer派生的类中的 OnRenderArrow 方法。To change the way an arrow is rendered, override the OnRenderArrow method in a class derived from ToolStripRenderer.

适用于