ToolStripRenderer.Initialize(ToolStrip) ToolStripRenderer.Initialize(ToolStrip) ToolStripRenderer.Initialize(ToolStrip) Method

定义

在派生类中重写时,提供给定 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 ToolStrip ToolStrip

要初始化的 ToolStripThe ToolStrip to be initialized.

注解

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

适用于