How to Use Styles > Working with Style Properties > Shortcut style properties |
For your convenience, and for compatibility with earlier versions of True DBGrid, 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. |
|
Sets/returns the editor background color. |
|
Sets/returns the editor foreground color. |
|
Specifies the typeface, size, and other text characteristics. |
|
Specifies column footing alignment. |
|
Sets/returns the footing background color. |
|
Specifies the footing font for an object. |
|
Sets/returns the footing foreground color. |
|
Sets/returns the foreground color. |
|
Specifies column heading alignment. |
|
Sets/returns the heading background color. |
|
Specifies the heading and caption font for an object. |
|
Sets/returns the heading foreground color. |
|
Sets/returns the inactive heading background color. |
|
Sets/returns the inactive heading foreground color. |
|
True if data entry is prohibited for an object. |
|
Sets/returns the selected row and column background color. |
|
Sets/returns the selected row and column foreground color. |
|
True if cell text is word wrapped. |
The following grid shows the style property equivalent for each shortcut. It also indicates which properties are supported by the TDBGrid and TDBDropDown controls, and which properties are supported by the Split and Column objects.
For example, the following statements are equivalent:
Example Title |
Copy Code
|
---|---|
TDBGrid1.Columns(0).HeadAlignment = dbgCenter TDBGrid1.Columns(0).HeadingStyle.Alignment = dbgCenter |