IControlDesignerAccessor 接口

定义

提供对控件设计器的访问,以存储与控件有关的临时性设计数据。

public interface class IControlDesignerAccessor
public interface IControlDesignerAccessor
type IControlDesignerAccessor = interface
Public Interface IControlDesignerAccessor
派生

注解

接口中定义的属性和方法为 IControlDesignerAccessor 控件设计器提供了一种方便的方法,使控件设计器可以访问用于传递和检索临时设计时数据的控件。 接口由 Control 类实现。 控件设计器使用此接口的实现来访问控件。

临时设计时数据不会与控件本身一起保存。 若要保留控件的设计时数据,应检索属性的内容 UserData 并将其存储在设计器特定的位置。

属性

UserData

实现时,获取控件设计器可以访问的信息的集合。

方法

GetDesignModeState()

实现时,获取控件在设计图面上使用时的状态。

SetDesignModeState(IDictionary)

实现时,在设计图面上呈现它之前设置控件状态。

SetOwnerControl(Control)

实现时,指定作为所有者控制方法实现的控件。

适用于

另请参阅