WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CustomControlEditor

    Show / Hide Table of Contents

    Class CustomControlEditor

    Represents the CustomControlEditor 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.

    Inheritance
    System.Object
    CustomControlEditor
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class CustomControlEditor : UITypeEditor

    Constructors

    CustomControlEditor()

    Initialie a new instance of the CustomControlEditor class.

    Declaration
    public CustomControlEditor()

    Methods

    EditValue(ITypeDescriptorContext, IServiceProvider, Object)

    Overridden. Edits the specified object's value using the editor style indicated by the GetEditStyle() method.

    Declaration
    public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    An System.ComponentModel.ITypeDescriptorContext that can be used to gain additional context information.

    System.IServiceProvider provider

    An System.IServiceProvider that this editor can use to obtain services.

    System.Object value

    The object to edit.

    Returns
    Type Description
    System.Object

    The new value of the object. If the value of the object has not changed, this should return the same object it was passed.

    GetEditStyle(ITypeDescriptorContext)

    Overridden. Gets the editor style used by the CustomControlEditor.EditValue method.

    Declaration
    public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
    Parameters
    Type Name Description
    System.ComponentModel.ITypeDescriptorContext context

    Provides contextual information about a component, such as its container and property descriptor.

    Returns
    Type Description
    System.Drawing.Design.UITypeEditorEditStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved