In This Topic
As in Microsoft Word, a
Style object in
List for WinForms can inherit its characteristics from another style, referred to as the parent style. For a newly created list, the Normal style is the parent (or grandparent) of all named styles. Its default properties are as follows:
The Heading and Footing styles are defined similarly. Each inherits from Normal, and each overrides the following properties:
The Heading style overrides one additional property that the Footer style does not:
Style Property |
Default Value |
WrapText |
True |
The Selected style also inherits from Normal and overrides two color properties:
Style Property |
Default Value |
BackColor |
System.Drawing.SystemColors.Highlight |
ForeColor |
System.Drawing.SystemColors.HighlightText |
The same is true of the HighlightRow style, which uses the inverse of the color settings for the default Normal style:
Style Property |
Default Value |
BackColor |
System.Drawing.SystemColors.Highlight |
ForeColor |
System.Drawing.SystemColors.HighlightText |
The EvenRow and OddRow styles inherit from Normal, but only EvenRow overrides any properties:
Style Property |
Default Value |
BackColor |
System.Drawing.Color.Aqua |
The only styles that do not inherit directly from Normal are Caption and RecordSelector, which inherit from Heading. The reason that list and split captions are justified by default is that the Caption style specializes the following property: