Class ScriptUITypeEditor
Implements a UITypeEditor for editing Script objects.
Inheritance
System.Object
ScriptUITypeEditor
Namespace: Syncfusion.Scripting.Design
Assembly: Syncfusion.Scripting.Windows.dll
Syntax
public class ScriptUITypeEditor : UITypeEditor
Remarks
This class is the design-time editor for the Script property of
the
Constructors
ScriptUITypeEditor()
Default constructor.
Declaration
public ScriptUITypeEditor()
Methods
EditValue(ITypeDescriptorContext, IServiceProvider, Object)
Called by the designer to edit a script.
Declaration
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | |
System.IServiceProvider | provider | |
System.Object | value |
Returns
Type | Description |
---|---|
System.Object | Returns the updated value of the Script |
GetEditStyle(ITypeDescriptorContext)
Returns the editor style.
Declaration
public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | Designer host context |
Returns
Type | Description |
---|---|
System.Drawing.Design.UITypeEditorEditStyle | Always returns UITypeEditorEditStyle.Modal as the editor style |
GetPaintValueSupported(ITypeDescriptorContext)
Determines if the editor manually draws the value in the property grid.
Declaration
public override bool GetPaintValueSupported(ITypeDescriptorContext context)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context |
Returns
Type | Description |
---|---|
System.Boolean | Always returns false |
PaintValue(PaintValueEventArgs)
Handles painting the value for the editor.
Declaration
public override void PaintValue(PaintValueEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Design.PaintValueEventArgs | e |
Remarks
Does nothing except call the base class PaintValue method.