How to Use Styles > Working with Style Properties > Shortcut style properties |
For your convenience, and for compatibility with earlier versions of True DBList, several shortcut properties are defined for accessing Style object members at either design time or run time:
Specifies horizontal text alignment |
|
Sets/returns the background color |
|
Specifies the typeface, size, and other text characteristics |
|
Specifies column footing alignment |
|
Sets/returns the foreground color |
|
Specifies column heading alignment |
The following list shows the style property equivalent for each shortcut. It also indicates which properties are supported by the TDBList and TDBCombo controls, and which properties are supported by the Split and Column objects.
For example, the following statements are equivalent:
Example Title |
Copy Code
|
---|---|
TDBList1.Columns(0).HeadAlignment = dblCenter TDBList1.Columns(0).HeadingStyle.Alignment = dblCenter |