ComponentOne List for WinForms
In This Topic
    List Objects and Collections
    In This Topic

    List for WinForms provides a rich set of properties, methods, and events that enable you to develop sophisticated database applications. The organization imposed by List for WinForms' object model makes it easier to work with such a large feature set.

    Objects and collections that refer to visual entities, such as columns, can be customized in the designer or in code. Objects and collections that refer to abstract entities, such as arrays and bookmarks, are only available in code.

    Two controls are available in the .NET Toolbox for addition into a project:

    Control Description
    C1List List .NET control.
    C1Combo Combo .NET control.
    The namespace for List for WinForms also contains definitions for the following objects:
    Object Description
    C1DataColumn Represents a column of data within a list.
    C1DisplayColumn Represents a column of data relative to a split.
    GridLines Represents the gridlines which separate items in the list.
    HBar Represents the horizontal scroll bar and its properties.
    Split Represents a group of adjacent columns that scroll as a unit.
    Style Encapsulates font, color, picture, and formatting information.
    ValueItems Encapsulates both the Values collection and valueitem properties.
    ValueItem Allowable column input values, with optional translation.
    VBar Represents the vertical scroll bar and its properties.
    A collection is an object used to group similar data items, such as list columns or styles. In general, a group of similar items in List is implemented as a collection. Since a collection is an object, you can manipulate it in code just as you would any other object. List for WinForms exposes the following collections:
    Collection Description
    C1DataColumnCollection Contains zero or more C1DataColumn objects in a list.
    C1DisplayColumnCollection Contains zero or more C1DisplayColumn objects in a list.
    SelectedRowCollection Contains zero or more selected row bookmarks
    SelectedColumnCollection Contains zero or more selected row bookmarks
    SplitCollection Contains one or more Style objects in a list.
    GridStyleCollection Contains built-in and user-defined Style objects for a list.
    ValueItemCollection Contains zero or more ValueItem objects for a column.
    The following sections provide a brief overview of List for WinForms' objects and collections.