IControlDesignerAccessor 接口

定义

提供对控件设计器的访问,以存储与控件有关的临时性设计数据。Provides access to a control designer to store temporary design-time data associated with a control.

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

注解

IControlDesignerAccessor接口中定义的属性和方法为控件设计器提供了一种方便的方法, 使控件设计器可以访问用于传递和检索临时设计时数据的控件。The property and methods defined in the IControlDesignerAccessor interface offer a convenient way for the control designer to access a control for passing and retrieving temporary design-time data. 接口由Control类实现。The interface is implemented by the Control class. 控件设计器使用此接口的实现来访问控件。Control designers use the implementation of this interface to access the control.

临时设计时数据不会与控件本身一起保存。Temporary design-time data is not persisted with the control itself. 若要保留控件的设计时数据, 应检索UserData属性的内容并将其存储在设计器特定的位置。To persist design-time data for a control, you should retrieve the contents of the UserData property and store them in a designer-specific location.

属性

UserData

实现时,获取控件设计器可以访问的信息的集合。When implemented, gets a collection of information that can be accessed by a control designer.

方法

GetDesignModeState()

实现时,获取控件在设计图面上使用时的状态。When implemented, gets the state from the control during use on the design surface.

SetDesignModeState(IDictionary)

实现时,在设计图面上呈现它之前设置控件状态。When implemented, sets control state before rendering it on the design surface.

SetOwnerControl(Control)

实现时,指定作为所有者控制方法实现的控件。When implemented, specifies the control that acts as the owner to the control implementing this method.

适用于

另请参阅