Spread Windows Forms 6.0 Product Documentation
StringTrim Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > HyperLinkCellType Class : StringTrim Property


Glossary Item Box

Gets or sets how to trim characters that do not fit in the cell.

Syntax

Visual Basic (Declaration) 
Public Property StringTrim As StringTrimming
Visual Basic (Usage)Copy Code
Dim instance As HyperLinkCellType
Dim value As StringTrimming
 
instance.StringTrim = value
 
value = instance.StringTrim
C# 
public StringTrimming StringTrim {get; set;}

Example

This example sets the StringTrim property.
C#Copy Code
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;
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.