ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1.Win.C1TrueDBGrid.Style.ForegroundImage Property

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:

·      Visual Basic

       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.