ComponentOne True DBGrid for WinForms
In This Topic
    How to Use Styles
    In This Topic

    True DBGrid for WinForms uses a style model similar to that of Microsoft Word and Excel to simplify the task of customizing a grid's appearance. A Style object is a combination of font, color, picture, and formatting information comprising the following properties:

    Property Description
    Alpha Gets or sets the alpha component when the style is rendered.
    BackColor Gets or sets the background color associated with a Style.
    BackColor2 Gets or sets the background color associated with a Style.
    BackgroundImage Gets or sets the background image associated with a Style.
    BackgroundPictureDrawMode Gets or sets the rendering method for a BackgroundImage.
    Borders Gets the GridBorders associated with this Style.
    Font Gets or sets the Font associated with a Style.
    ForeColor Gets or sets the foreground color associated with a Style.
    ForegroundImage Gets or sets the foreground image associated with a style.
    ForeGroundPicturePosition Gets or sets the position that the ForegroundImage is rendered.
    GammaCorrection Gets or sets a value indicating whether gamma correction is enabled when a linear gradient style is rendered.
    GradientMode Specifies the direction of a linear gradient.
    HorizontalAlignment Gets or sets the horizontal text alignment.
    Locked Gets or sets a value indicating whether data entry is permitted for the associated object.
    Name Gets or sets the name of the Style.
    Padding Gets or sets the spacing between cell content and its edges.
    Trimming Gets or sets the trim characters for a string that does not completely fit into a layout shape.
    VerticalAlignment Gets or sets the vertical text alignment.
    WrapText Gets or sets a value indicating whether text is word-wrapped when it does not fit into a layout shape.
    See Also