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)

使用指定的服務提供者和內容 (Context),編輯指定物件的值。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)

為指定的內容 (Context) 取得與這個編輯器關聯的編輯樣式。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 的淺層複本 (Shallow Copy)。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)

適用於

另請參閱