Gets or sets the height of the column captions.
[Visual Basic]
Public Property ColumnCaptionHeight As Integer
[C#]
public int ColumnCaptionHeight {get;set;}
[Delphi]
public property ColumnCaptionHeight: Int32 read get_ColumnCaptionHeight write set_ColumnCaptionHeight;
Example
The following code sets the ColumnCaptionHeight property to two lines:
Me.C1TrueDBGrid1.Splits(0).ColumnCaptionHeight = Me.C1TrueDBGrid1.Splits(0).ColumnCaptionHeight * 2
Me.C1TrueDBGrid1.Columns(0).Caption = "First line" + vbCrLf + "Second line"
· C#
this.c1TrueDBGrid1.Splits[0].ColumnCaptionHeitght = this.c1TrueDBGrid1.Splits[0].ColumnCaptionHeight * 2;
this.c1TrueDBGrid1.Columns[0].Caption = "First line\nSecond line";
· Delphi
Self.C1TrueDBGrid1.Splits[0].ColumnCaptionHeight := Self.C1TrueDBGrid1.Splits[0].ColumnCaptionHeight * 2;
Self.C1TrueDBGrid1.Columns[0].Caption := 'First line' + #13#10 + 'Second line';
See Also
Split Class | Split Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |