Gets or sets the foreground color associated with a Style.
[Visual Basic]
Public Property ForeColor As Color
[C#]
public Color ForeColor {get;set;}
[Delphi]
public property ForeColor: Color read get_ForeColor write set_ForeColor;
Example
The following code sets the foreground color of grid cells to DarkSlateGray:
Me.C1TrueDBGrid1.Splits(0).Style.ForeColor = Color.DarkSlateGray
· C#
this.c1TrueDBGrid1.Splits[0].Style.ForeColor = Color.DarkSlateGray;
· Delphi
Self.C1TrueDBGrid1.Splits[0].Style.ForeColor := Color.DarkSlateGray;
See Also
C1.Win.C1TrueDBGrid.Style Class | C1.Win.C1TrueDBGrid.Style Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |