System.Drawing.Design.UITypeEditor

Provides a base class that can be used to design value editors that can provide a user interface (UI) for representing and editing the values of objects of the supported data types.


Inherits from: System.Object

Constructors

Signature Description
New ()

Properties

Property Name Property Type Description
IsDropDownResizable System.Boolean Gets a value indicating whether drop-down editors should be resizable by the user.

Methods

Method Name Description
EditValue(provider As IServiceProvider, value As Object) As Object Edits the value of the specified object using the editor style indicated by the method.
Parameters
provider
          Type: IServiceProvider
          An that this editor can use to obtain services.
 
value
          Type: Object
          The object to edit.
EditValue(context As ITypeDescriptorContext, provider As IServiceProvider, value As Object) As Object Edits the specified object's value using the editor style indicated by the method.
Parameters
context
          Type: ITypeDescriptorContext
          An that can be used to gain additional context information.
 
provider
          Type: IServiceProvider
          An that this editor can use to obtain services.
 
value
          Type: Object
          The object to edit.
GetEditStyle() As UITypeEditorEditStyle Gets the editor style used by the method.
GetEditStyle(context As ITypeDescriptorContext) As UITypeEditorEditStyle Gets the editor style used by the method.
Parameters
context
          Type: ITypeDescriptorContext
          An that can be used to gain additional context information.
GetPaintValueSupported() As Boolean Indicates whether this editor supports painting a representation of an object's value.
GetPaintValueSupported(context As ITypeDescriptorContext) As Boolean Indicates whether the specified context supports painting a representation of an object's value within the specified context.
Parameters
context
          Type: ITypeDescriptorContext
          An that can be used to gain additional context information.
PaintValue(value As Object, canvas As Graphics, rectangle As Rectangle) Paints a representation of the value of the specified object to the specified canvas.
Parameters
value
          Type: Object
          The object whose value this type editor will display.
 
canvas
          Type: Graphics
          A drawing canvas on which to paint the representation of the object's value.
 
rectangle
          Type: Rectangle
          A within whose boundaries to paint the value.
PaintValue(e As PaintValueEventArgs) Paints a representation of the value of an object using the specified .
Parameters
e
          Type: PaintValueEventArgs
          A that indicates what to paint and where to paint it.