ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1.Win.C1TrueDBGrid.Style.Font Property

Gets or sets the Font associated with a Style.

[Visual Basic]

Public Property Font As Font

[C#]

public Font Font {get;set;}

[Delphi]

public property Font: Font read get_Font write set_Font;

Example

The following code sets the Font property for the entire split to bold, Tahoma font:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).Style.Font = New Font("Tahoma", 10, FontStyle.Bold)

·      C#

       this.c1TrueDBGrid1.Splits[0].Style.Font = new Font("Tahoma", 10, FontStyle.Bold);

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].Style.Font := Font.Create('Tahoma', 10, FontStyle.Bold);

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.