ExpressionsCollectionEditor 类

定义

提供可在设计时选择和编辑表达式绑定集合的用户界面。Provides a user interface for selecting and editing an expressions binding collection at design time.

public ref class ExpressionsCollectionEditor : System::Drawing::Design::UITypeEditor
public class ExpressionsCollectionEditor : System.Drawing.Design.UITypeEditor
type ExpressionsCollectionEditor = class
    inherit UITypeEditor
Public Class ExpressionsCollectionEditor
Inherits UITypeEditor
继承
ExpressionsCollectionEditor

注解

ExpressionsCollectionEditor类的实例是一个UITypeEditor对象, 该对象可在设计时用于选择和编辑表达式绑定的集合, 并将表达式分配给控件属性。An instance of the ExpressionsCollectionEditor class is a UITypeEditor object that can be used at design time to select and edit a collection of expression bindings, and assign the expressions to a control property.

设计Visual Studio 2005Visual Studio 2005器宿主 (如) 将ExpressionBuilder ExpressionsCollectionEditorExpressionEditor类实现与和ExpressionsCollectionConverter类一起使用, ControlPersister以便在设计时设置控件属性的表达式绑定, 以及类保存运行时的表达式。A designer host, such as Visual Studio 2005Visual Studio 2005, uses the ExpressionBuilder and ExpressionEditor class implementations with the ExpressionsCollectionEditor and ExpressionsCollectionConverter classes to set the expression bindings for control properties at design time, and the ControlPersister class to persist the expressions for run time. 表达式字符串引用可本地化的资源、应用程序设置、连接字符串或自定义表达式类型。Expression strings reference a localizable resource, an application setting, a connection string, or a custom expression type. 表达式字符串在设计时绑定到控件属性, 然后在运行时用于确定属性的值。The expression string is bound to the control property at design time, and then used at run time to determine the value for the property.

构造函数

ExpressionsCollectionEditor()

初始化 ExpressionsCollectionEditor 类的新实例。Initializes a new instance of the ExpressionsCollectionEditor class.

属性

IsDropDownResizable

获取一个值,该值指示是否应由用户调整下拉编辑器的大小。Gets a value indicating whether drop-down editors should be resizable by the user.

(继承自 UITypeEditor)

方法

EditValue(IServiceProvider, Object)

使用 GetEditStyle() 方法所指示的编辑器样式编辑指定对象的值。Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

(继承自 UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

使用指定的服务提供程序和上下文编辑指定对象的值。Edits the value of the specified object with the specified service provider and context.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEditStyle()

获取由 EditValue(IServiceProvider, Object) 方法使用的编辑器样式。Gets the editor style used by the EditValue(IServiceProvider, Object) method.

(继承自 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

为指定的上下文获取与此编辑器关联的编辑样式。Gets the editing style that is associated with this editor for the specified context.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetPaintValueSupported()

指示该编辑器是否支持绘制对象值的表示形式。Indicates whether this editor supports painting a representation of an object's value.

(继承自 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

指示指定的上下文是否支持在指定的上下文内绘制对象值的表示形式。Indicates whether the specified context supports painting a representation of an object's value within the specified context.

(继承自 UITypeEditor)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
PaintValue(Object, Graphics, Rectangle)

将指定对象值表示形式绘制到指定的画布上。Paints a representation of the value of the specified object to the specified canvas.

(继承自 UITypeEditor)
PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs 绘制某个对象的值的表示形式。Paints a representation of the value of an object using the specified PaintValueEventArgs.

(继承自 UITypeEditor)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅