Spread Windows Forms 9.0 Product Documentation
StringTrim Property (HyperLinkCellType)
Example 


Gets or sets how to trim characters that do not fit in the cell.
Syntax
'Declaration
 
Public Property StringTrim As StringTrimming
'Usage
 
Dim instance As HyperLinkCellType
Dim value As StringTrimming
 
instance.StringTrim = value
 
value = instance.StringTrim
public StringTrimming StringTrim {get; set;}
Example
This example sets the StringTrim property.
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
hlnkcell.Link = "http://www.fpoint.com";
hlnkcell.LinkArea = new LinkArea(6, 10);
hlnkcell.LinkColor = Color.DarkRed;
hlnkcell.Text = "Click to See Our Web Site.";
hlnkcell.VisitedLinkColor = Color.Gray;
hlnkcell.StringTrim = StringTrimming.EllipsisCharacter;
fpSpread1.Sheets[0].Cells[7, 2].CellType = hlnkcell;
Dim hlnkcell As New FarPoint.Win.Spread.CellType.HyperLinkCellType()
hlnkcell.Link = "http://www.fpoint.com"
hlnkcell.LinkArea = New LinkArea(6, 10)
hlnkcell.LinkColor = Color.DarkRed
hlnkcell.Text = "Click to See Our Web Site."
hlnkcell.VisitedLinkColor = Color.Gray
hlnkcell.StringTrim = StringTrimming.EllipsisCharacter
FpSpread1.Sheets(0).Cells(7, 2).CellType = hlnkcell
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

HyperLinkCellType Class
HyperLinkCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.