Gets or sets the Style object that controls the appearance of the caption area.
[Visual Basic]
Public Property CaptionStyle As C1.Win.C1TrueDBGrid.Style
[C#]
public C1.Win.C1TrueDBGrid.Style CaptionStyle {get;set;}
[Delphi]
public property CaptionStyle: C1.Win.C1TrueDBGrid.Style read get_CaptionStyle write set_CaptionStyle;
Remarks
The value of the C1TrueDBGrid.Caption property is not affected by changes to the CaptionStyle property.
Example
The following code uses the CaptionStyle property to change the appearance of the caption area to have a black background with white and bold text:
Me.C1TrueDBDropdown1.CaptionStyle.BackColor = Color.Black
Me.C1TrueDBDropdown1.CaptionStyle.ForeColor = Color.White
Me.C1TrueDBDropdown1.CaptionStyle.Font = New Font(Font, FontStyle.Bold)
· C#
this.c1TrueDBDropdown1.CaptionStyle.BackColor = Color.Black;
this.c1TrueDBDropdown1.CaptionStyle.ForeColor = Color.White;
this.c1TrueDBDropdown1.CaptionStyle.Font = new Font(Font, FontStyle.Bold);
· Delphi
var myfont: Font;
with Self.C1TrueDBDropdown1.CaptionStyle do
begin
BackColor := Color.Black;
ForeColor := Color.White;
myfont := Font.Create(Font, FontStyle.Bold);
Font := myfont;
end;
See Also
C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |