Gets or sets the trim characters for a string that does not completely fit into a layout shape.
[Visual Basic]
Public Property Trimming As StringTrimming
[C#]
public StringTrimming Trimming {get;set;}
[Delphi]
public property Trimming: StringTrimming read get_Trimming write set_Trimming;
Example
For text that is too large to fit into a cell, the following code adds an ellipsis after the last character that is visible in a cell:
Me.C1TrueDBGrid1.Splits(0).Style.Trimming = StringTrimming.EllipsisCharacter
· C#
this.c1TrueDBGrid1.Splits[0].Style.Trimming = StringTrimming.EllipsisCharacter;
· Delphi
Self.C1TrueDBGrid1.Splits[0].Style.Trimming := StringTrimming.EllipsisCharacter;
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. |