ComponentOne List for WinForms
In This Topic
    Named Style Defaults
    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:
    Style Property Default Value
    Alpha 255
    BackColor System.Drawing.Color.White
    BackColor2 System.Drawing.Color.White
    BackgroundImage None
    BackgroundPictureDrawMode BackgroundPictureDrawModeEnum.Stretch
    Font Microsoft Sans Serif, 8.25pt
    ForeColor System.Drawing.Color.Black
    ForegroundImage None
    ForeGroundPicturePosition ForegroundPicturePositionEnum.LeftOfText
    GammaCorrection False
    GradientMode GradientModeEnum.None
    HorizontalAlignment AlignHorzEnum.General
    Name Normal
    Padding 0, 0, 0, 0
    Trimming Character
    VerticalAlignment AlignVertEnum.Top
    WrapText False
    The Heading and Footing styles are defined similarly. Each inherits from Normal, and each overrides the following properties:
    Style Property Default Value
    BackColor System.Drawing.SystemColors.Control
    ForeColor System.Drawing.Color.Black
    VerticalAlignment AlignVertEnum.Center
    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:
    Style Property Default Value
    HorizontalAlignment AlignHorzEnum.Justify