DesignerActionService.Remove 方法

定義

從一或多個元件解除一或多個智慧標籤清單的關聯。

多載

Remove(DesignerActionList)

移除目前服務管理之所有元件的指定智慧標籤清單。

Remove(IComponent)

移除與指定元件相關聯的所有智慧標籤清單。

Remove(IComponent, DesignerActionList)

從指定的元件移除指定的智慧標籤清單。

Remove(DesignerActionList)

移除目前服務管理之所有元件的指定智慧標籤清單。

public:
 void Remove(System::ComponentModel::Design::DesignerActionList ^ actionList);
public void Remove (System.ComponentModel.Design.DesignerActionList actionList);
member this.Remove : System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Remove (actionList As DesignerActionList)

參數

actionList
DesignerActionList

要移除的智慧標籤清單。

例外狀況

actionListnull

備註

這個版本的 Remove 方法通常是由設計工具開發人員使用,因為元件開發人員通常不知道目前設計空間中有哪些其他元件存在。

如果成功,這個方法會 DesignerActionListsChanged 引發 事件。

另請參閱

適用於

Remove(IComponent)

移除與指定元件相關聯的所有智慧標籤清單。

public:
 void Remove(System::ComponentModel::IComponent ^ comp);
public void Remove (System.ComponentModel.IComponent comp);
member this.Remove : System.ComponentModel.IComponent -> unit
Public Sub Remove (comp As IComponent)

參數

comp
IComponent

要從其解除智慧標籤關聯的元件。

例外狀況

compnull

備註

如果成功,方法會RemoveDesignerActionListsChanged引發 事件。

另請參閱

適用於

Remove(IComponent, DesignerActionList)

從指定的元件移除指定的智慧標籤清單。

public:
 void Remove(System::ComponentModel::IComponent ^ comp, System::ComponentModel::Design::DesignerActionList ^ actionList);
public void Remove (System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionList actionList);
member this.Remove : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Remove (comp As IComponent, actionList As DesignerActionList)

參數

comp
IComponent

要從其解除智慧標籤關聯的元件。

actionList
DesignerActionList

要移除的智慧標籤清單。

例外狀況

其中一或二個參數都為 null

備註

如果成功,方法會RemoveDesignerActionListsChanged引發 事件。

另請參閱

適用於