Gets or sets a value indicating whether text is word-wrapped when it does not fit into a layout shape.
[Visual Basic]
Public Property WrapText As Boolean
[C#]
public bool WrapText {get;set;}
[Delphi]
public property WrapText: Boolean read get_WrapText write set_WrapText;
Remarks
If True, a line break occurs before words that would otherwise be partially displayed.
If False (the default), no line break occurs and text is clipped at the cell's right edge.
Example
The following code sets the height of the rows and the First column and allows the text to wrap to wrap in the First column:
Me.C1TrueDBGrid1.RowHeight = Me.C1TrueDBGrid1.RowHeight * 2
Me.C1TrueDBGrid1.Splits(0).DisplayColumns("First").Width = 60
Me.C1TrueDBGrid1.Splits(0).DisplayColumns("First").Style.WrapText = True
· C#
this.c1TrueDBGrid1.RowHeight = this.c1TrueDBGrid1.RowHeight * 2;
this.c1TrueDBGrid1.Splits[0].DisplayColumns["First"].Width = 60;
this.c1TrueDBGrid1.Splits[0].DisplayColumns["First"].Style.WrapText = true;
· Delphi
Self.C1TrueDBGrid1.RowHeight := Self.C1TrueDBGrid1.RowHeight * 2;
Self.C1TrueDBGrid1.Splits[0].DisplayColumns['First'].Width := 60;
Self.C1TrueDBGrid1.Splits[0].DisplayColumns['First'].Style.WrapText := True;
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. |