menu

WinForms

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

    Show / Hide Table of Contents

    Class ListItemsEditor

    Represents a class that provides the editor control for list items.

    Inheritance
    System.Object
    ListItemsEditor
    Namespace: Syncfusion.Windows.Forms.Edit.Dialogs
    Assembly: Syncfusion.Edit.Windows.dll
    Syntax
    public class ListItemsEditor : UserControl

    Constructors

    ListItemsEditor()

    Initializes a new instance of the ListItemsEditor class.

    Declaration
    public ListItemsEditor()

    Fields

    btnAdd

    Defines a new Button

    Declaration
    protected ButtonAdv btnAdd
    Field Value
    Type
    ButtonAdv

    btnRemove

    Defines a new Button

    Declaration
    protected ButtonAdv btnRemove
    Field Value
    Type
    ButtonAdv

    lstItems

    Defines a new listbox

    Declaration
    protected ListBox lstItems
    Field Value
    Type
    System.Windows.Forms.ListBox

    panel

    Panel for listbox

    Declaration
    protected Panel panel
    Field Value
    Type
    System.Windows.Forms.Panel

    Properties

    Example

    Gets or sets the sample items.

    Declaration
    public string Example { get; set; }
    Property Value
    Type
    System.String

    ItemsList

    Gets the list of items in editor control.

    Declaration
    public string[] ItemsList { get; }
    Property Value
    Type
    System.String[]

    ReverseValidation

    Gets or sets a value indicating whether the validation is reverse or not.

    Declaration
    public bool ReverseValidation { get; set; }
    Property Value
    Type
    System.Boolean

    Validator

    Gets or sets the regular expression which helps to validate the input control data.

    Declaration
    public Regex Validator { get; set; }
    Property Value
    Type
    System.Text.RegularExpressions.Regex

    Methods

    Add(String)

    Adds the new value to the editor items collection.

    Declaration
    public void Add(string value)
    Parameters
    Type Name Description
    System.String value

    String value to add.

    AddRange(String[])

    Adds the range of value to the editor items collection.

    Declaration
    public void AddRange(string[] value)
    Parameters
    Type Name Description
    System.String[] value

    Range of string values to add.

    Clear()

    Clear all items in the editor items collection.

    Declaration
    public void Clear()

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    True to release both managed and unmanaged resources; false to release only unmanaged resources.

    EnableDoubleBuffering()

    Enables double buffering for the form thats helps to renderer all paint operations to a memory buffer instead of the drawing surface on the screen.

    Declaration
    public void EnableDoubleBuffering()

    Remove(String)

    Removes the value from the editor items collection.

    Declaration
    public void Remove(string value)
    Parameters
    Type Name Description
    System.String value

    Item to remove.

    UpdateItems()

    Updates items.

    Declaration
    protected void UpdateItems()

    Events

    OnAddClick

    Occurs while clicking add button on ListItemsEditor dialog.

    Declaration
    public event EventHandler OnAddClick
    Event Type
    Type
    System.EventHandler

    OnRemoveClick

    Occurs while clicking remove button on ListItemsEditor dialog.

    Declaration
    public event EventHandler OnRemoveClick
    Event Type
    Type
    System.EventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved