ToolStripControlHost.OnParentChanged(ToolStrip, ToolStrip) 方法

定義

引發 ParentChanged 事件。Raises the ParentChanged event.

protected:
 override void OnParentChanged(System::Windows::Forms::ToolStrip ^ oldParent, System::Windows::Forms::ToolStrip ^ newParent);
protected override void OnParentChanged (System.Windows.Forms.ToolStrip oldParent, System.Windows.Forms.ToolStrip newParent);
override this.OnParentChanged : System.Windows.Forms.ToolStrip * System.Windows.Forms.ToolStrip -> unit
Protected Overrides Sub OnParentChanged (oldParent As ToolStrip, newParent As ToolStrip)

參數

oldParent
ToolStrip

此項目的原始父代。The original parent of the item.

newParent
ToolStrip

此項目的新父代。The new parent of the item.

適用於

另請參閱