DesignerObject 类
定义
表示设计宿主(如 Visual Studio 2005)中的一个对象。Represents an object in a design host such as Visual Studio 2005. 必须继承此类。This class must be inherited.
public ref class DesignerObject abstract : IServiceProvider
public abstract class DesignerObject : IServiceProvider
type DesignerObject = class
interface IServiceProvider
Public MustInherit Class DesignerObject
Implements IServiceProvider
- 继承
-
DesignerObject
- 派生
- 实现
构造函数
| DesignerObject(ControlDesigner, String) |
初始化 DesignerObject 类的新实例。Initializes a new instance of the DesignerObject class. |
属性
| Designer |
获取关联的设计器组件。Gets the associated designer component. |
| Name |
获取对象的名称。Gets the name of the object. |
| Properties |
获取对象的属性。Gets the object's properties. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetService(Type) |
从设计宿主中获取由所提供的类型标识的服务。Gets a service from the design host, as identified by the provided type. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
| IServiceProvider.GetService(Type) |
有关此成员的说明,请参见 GetService(Type)。For a description of this member, see GetService(Type). |