DesignerActionService.Remove 方法

定义

从一个或多个组件断开与一个或多个智能标记列表的关联。Disassociates one or more smart tag lists from one or more components.

重载

Remove(DesignerActionList)

从由当前服务管理的所有组件中移除指定的智能标记列表。Removes the specified smart tag list from all components managed by the current service.

Remove(IComponent)

移除与指定组件关联的所有智能标记列表。Removes all the smart tag lists associated with the specified component.

Remove(IComponent, DesignerActionList)

从指定的组件移除指定的智能标记列表。Removes the specified smart tag list from the specified component.

Remove(DesignerActionList)

从由当前服务管理的所有组件中移除指定的智能标记列表。Removes the specified smart tag list from all components managed by the current service.

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

要移除的智能标记列表。The list of smart tags to be removed.

异常

actionListnullactionList is null.

注解

此版本的Remove方法通常由设计工具开发人员使用, 因为组件开发人员通常不知道当前设计空间中存在哪些其他组件。This version of the Remove method is typically used by design tool developers, because component developers typically do not know what other components exist in the current design space.

如果成功, 则此方法会DesignerActionListsChanged引发事件。If successful, this method raises the DesignerActionListsChanged event.

另请参阅

Remove(IComponent)

移除与指定组件关联的所有智能标记列表。Removes all the smart tag lists associated with the specified component.

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

要与智能标记断开关联的组件。The component to disassociate the smart tags from.

异常

compnullcomp is null.

注解

如果成功, 则Remove该方法将DesignerActionListsChanged引发事件。If successful, the Remove method raises the DesignerActionListsChanged event.

另请参阅

Remove(IComponent, DesignerActionList)

从指定的组件移除指定的智能标记列表。Removes the specified smart tag list from the specified component.

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

要与智能标记断开关联的组件。The component to disassociate the smart tags from.

actionList
DesignerActionList

要移除的智能标记列表。The smart tag list to remove.

异常

两个参数之一或两个参数均为 nullOne or both of the parameters are null.

注解

如果成功, 则Remove该方法将DesignerActionListsChanged引发事件。If successful, the Remove method raises the DesignerActionListsChanged event.

另请参阅

适用于