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.

適用於