Spread Windows Forms 7.0 Product Documentation
Ellipsis Property
See Also  Example Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcTextBoxCellType Class : Ellipsis Property


Glossary Item Box

Gets or sets a value that indicates how the ellipsis character (...) appears, denoting that the GcTextBox text extends beyond the specified length of the GcTextBox.

Syntax

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

Property Value

A EllipsisMode enumeration, None, means no ellipsis string is shown. EllipsisEnd means to trim the end of the string with the character. EllipsisPath, means to trim the center of the string with the character. EllipsisWord, means to trim the end of the string with the word.
The default is EllipsisMode.None.

Exceptions

ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe value isn't a valid EllipsisMode item.

Remarks

This Ellipsis property only takes effect when using GcTextBox.Multiline. When the text is longer than this control's width and this control does not have focus, the ellipsis string, specified by the GcTextBox.EllipsisString property, is displayed.

Example

This example uses the Ellipsis property.
C#Copy Code
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
inputcell1.Ellipsis = GrapeCity.Win.Spread.InputMan.CellType.EllipsisMode.EllipsisEnd;
inputcell1.EllipsisString = "..";
fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;
VB.NETCopy Code
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType
inputcell1.Ellipsis = GrapeCity.Win.Spread.InputMan.CellType.EllipsisMode.EllipsisEnd
inputcell1.EllipsisString = ".."
FpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1

Requirements

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

See Also

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