menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DropDownUITypeEditor - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DropDownUITypeEditor

    Base class that provide functionality of DropDown list for PropertyGrid.

    Inheritance
    System.Object
    DropDownUITypeEditor
    BaseStyleSelectorUITypeEditor
    TreeViewAdvImageListIndexUITypeEditor
    Namespace: Syncfusion.Windows.Forms.Tools.MultiColumnTreeView
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public abstract class DropDownUITypeEditor : UITypeEditor

    Constructors

    DropDownUITypeEditor()

    Initialize a new instance of the DropDownUITypeEditor class.

    Declaration
    public DropDownUITypeEditor()

    Properties

    Context

    Gets current context of editor.

    Declaration
    protected ITypeDescriptorContext Context { get; }
    Property Value
    Type
    System.ComponentModel.ITypeDescriptorContext

    ListBox

    Gets drop down control

    Declaration
    protected ListBox ListBox { get; }
    Property Value
    Type
    System.Windows.Forms.ListBox

    Methods

    EditValue(ITypeDescriptorContext, IServiceProvider, Object)

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

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

    It can be used to gain additional context information.

    System.IServiceProvider provider

    It can used to obtain services.

    System.Object value

    The value of the object.

    Returns
    Type
    System.Object

    GetEditStyle(ITypeDescriptorContext)

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

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

    It can be used to gain additional context information.

    Returns
    Type
    System.Drawing.Design.UITypeEditorEditStyle

    GetListItemsCollection()

    Method return array of items that will be added as items into ListBox. User have to select value from this array for property.

    Declaration
    protected abstract object[] GetListItemsCollection()
    Returns
    Type Description
    System.Object[]

    Array of values.

    GetSelectionIndex(Object)

    On startup detect what item is selected and return its order index.

    Declaration
    protected abstract int GetSelectionIndex(object value)
    Parameters
    Type Name Description
    System.Object value

    Selection Index value

    Returns
    Type Description
    System.Int32

    Selected item from DropDown list.

    GetSelectionValue(Int32)

    Method return by order index real value that have to be stored as property value.

    Declaration
    protected abstract object GetSelectionValue(int index)
    Parameters
    Type Name Description
    System.Int32 index

    selected item from list

    Returns
    Type Description
    System.Object

    corresponding value that index.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved