Gets or sets the foreground image associated with a style.
[Visual Basic]
Public Property ForegroundImage As Image
[C#]
public Image ForegroundImage {get;set;}
[Delphi]
public property ForegroundImage: Image read get_ForegroundImage write set_ForegroundImage;
Remarks
If a style has no foreground bitmap, then this property returns null value.
Example
The following code assigns a bitmap to the ForegroundImage property:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns(1).HeadingStyle.ForegroundImage = System.Drawing.Image.FromFile("C:\c1logo.bmp")
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns[1].HeadingStyle.ForegroundImage = System.Drawing.Image.FromFile("C:\c1logo.bmp");
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns[1].HeadingStyle.ForegroundImage := System.Drawing.Image.FromFile("C:\c1logo.bmp");
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. |