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