ToolStripRenderer.Initialize(ToolStrip) 方法

定义

在派生类中重写时,提供给定 ToolStrip 的自定义初始化。When overridden in a derived class, provides for custom initialization of the given ToolStrip.

protected public:
 virtual void Initialize(System::Windows::Forms::ToolStrip ^ toolStrip);
protected internal virtual void Initialize (System.Windows.Forms.ToolStrip toolStrip);
abstract member Initialize : System.Windows.Forms.ToolStrip -> unit
override this.Initialize : System.Windows.Forms.ToolStrip -> unit

参数

toolStrip
ToolStrip

要初始化的 ToolStripThe ToolStrip to be initialized.

注解

在呈现 ToolStrip 时,使用 Initialize 方法设置属性,如 ToolStrip.BackColorToolStrip.FontUse the Initialize method to set properties, such as the ToolStrip.BackColor or ToolStrip.Font, when a ToolStrip is rendered.

适用于