ToolStripRenderer.DrawItemText(ToolStripItemTextRenderEventArgs) ToolStripRenderer.DrawItemText(ToolStripItemTextRenderEventArgs) ToolStripRenderer.DrawItemText(ToolStripItemTextRenderEventArgs) ToolStripRenderer.DrawItemText(ToolStripItemTextRenderEventArgs) Method

定義

ToolStripItem 上繪製文字。Draws text on a ToolStripItem.

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

參數

備註

方法會提供文字ToolStripItem之呈現程式碼的進入點。 DrawItemTextThe DrawItemText method provides the entry point to the rendering code for the text of a ToolStripItem. 覆寫ToolStripItem.OnPaint方法時, 使用這個方法來繪製專案文字, 或強制在自訂ToolStripRenderer中繪製專案文字。Use this method to draw the item text when overriding the ToolStripItem.OnPaint method, or to force the item text to be drawn in a custom ToolStripRenderer. 若要變更呈現專案文字的方式, 請覆寫OnRenderItemText衍生自之ToolStripRenderer類別中的方法。To change the way the item text is rendered, override the OnRenderItemText method in a class derived from ToolStripRenderer.

適用於