DesignerActionService.Remove 方法

定義

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

多載

Remove(DesignerActionList)

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

Remove(IComponent)

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

Remove(IComponent, DesignerActionList)

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

Remove(DesignerActionList)

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

C#
public void Remove (System.ComponentModel.Design.DesignerActionList actionList);

參數

actionList
DesignerActionList

要移除的智慧標籤清單。

例外狀況

actionListnull

備註

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

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

另請參閱

適用於

.NET Framework 4.8.1 及其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Remove(IComponent)

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

C#
public void Remove (System.ComponentModel.IComponent comp);

參數

comp
IComponent

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

例外狀況

compnull

備註

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

另請參閱

適用於

.NET Framework 4.8.1 及其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Remove(IComponent, DesignerActionList)

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

C#
public void Remove (System.ComponentModel.IComponent comp, System.ComponentModel.Design.DesignerActionList actionList);

參數

comp
IComponent

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

actionList
DesignerActionList

要移除的智慧標籤清單。

例外狀況

其中一或二個參數都為 null

備註

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

另請參閱

適用於

.NET Framework 4.8.1 及其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9