\
ComponentOne List for WinForms
Design-Time Support / Using the Style Collection Editor
In This Topic
    Using the Style Collection Editor
    In This Topic

    The Style collection is a collection of Microsoft Word-like styles which can associate certain sections for the list with a style. The Styles collection is located under the C1List object, and contains individual Style objects as its members. Accessing the individual Style objects and their properties in code is done through this collection, and is demonstrated by the following:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1List1.Styles("Normal").WrapText = False
    

    To write code in C#

    C#
    Copy Code
    this.c1List1.Styles["Normal"].WrapText = false;
    

    In order to make these properties more easily modifiable, the Style Collection Editor enables the user to add styles and modify the properties of existing styles. The Style Collection Editor is available in the Properties window. Clicking the ellipsis button next to the Styles node in the Properties window will bring up the editor.