Syncfusion.Grid.Windows
Example 


Trimming Property

Gets or sets how text is trimmed when it exceeds the edges of the cell text rectangle.
Syntax
'Declaration
 
<BrowsableAttribute(True)>
<DescriptionAttribute("Indicates how text is trimmed when it exceeds the edges of the cell text rectangle.")>
<NotifyParentPropertyAttribute(True)>
<SRCategoryAttribute("StyleCategoryAppearance")>
Public Property Trimming As StringTrimming
'Usage
 
Dim instance As GridStyleInfo
Dim value As StringTrimming
 
instance.Trimming = value
 
value = instance.Trimming
[Browsable(true)]
[Description("Indicates how text is trimmed when it exceeds the edges of the cell text rectangle.")]
[NotifyParentProperty(true)]
[SRCategory("StyleCategoryAppearance")]
public StringTrimming Trimming {get; set;}
Remarks

The default value for the Trimming property is StringTrimming.Character.

The property affects the behavior or appearance of the following cell types:

Example
This example shows how the text is trimmed when it exceeds the edges of the cell text rectangle.
//sets how text is trimmed when it exceeds the edges of the cell text rectangle.
this.gridControl1.TableStyle.Trimming = StringTrimming.EllipsisPath;
'sets how text is trimmed when it exceeds the edges of the cell text rectangle.
 Me.gridControl1.TableStyle.Trimming = StringTrimming.EllipsisPath
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also