ComponentOne List 8.0 for ActiveX
Modifying named styles

You can change the appearance of the overall list at design time by modifying a named style using the Style Factory property page. For example, to force all column headers to center their caption text, you can change the Alignment property of the built-in Heading style to 2 - Center.

The following statement accomplishes the same result in code:

Example Title
Copy Code
TDBList1.Styles("Heading").Alignment = dblCenter

However, you are not required to use the Style Factory property page or manipulate named members of the Styles collection in code, as the list and its component objects expose several properties that return Style objects. As the next section describes, you can fine tune the appearance of the list by manipulating these objects directly.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback