DesignerActionService.Remove 方法

定義

將一個或多個智慧標籤清單與一個或多個元件分離。

多載

名稱 Description
Remove(DesignerActionList)

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

Remove(IComponent)

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

Remove(IComponent, DesignerActionList)

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

Remove(DesignerActionList)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

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

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)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

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

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

備註

若成功,該 Remove 方法會提升事件值 DesignerActionListsChanged

另請參閱

適用於

Remove(IComponent, DesignerActionList)

來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs
來源:
DesignerActionService.cs

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

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

備註

若成功,該 Remove 方法會提升事件值 DesignerActionListsChanged

另請參閱

適用於