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


Glossary Item Box

Gets the alternate text of the GcTextBox control.

Syntax

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

Property Value

A TextBoxAlternateText value that indicates the alternate text.

Remarks

If the current value is System.String.Empty and this control has input focus, this GcTextBox.Text property equals the TextBoxAlternateText.Null setting, which is not null. The GcTextBox.Text property equals the TextBoxAlternateText.DisplayNull setting if the current value is a null reference (Nothing in Visual Basic) and this control does not contain the input focus.

Example

This example uses the AlternateText property.
C#Copy Code
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textcell.AlternateText.DisplayNull.Text = "test";
fpSpread1.Sheets[0].Cells[0, 0].CellType = textcell;
VB.NETCopy Code
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textcell.AlternateText.DisplayNull.Text = "test"
FpSpread1.Sheets(0).Cells(0, 0).CellType = textcell

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.