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.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.
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.NET | Copy Code |
---|---|
Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType() textcell.AlternateText.DisplayNull.Text = "test" FpSpread1.Sheets(0).Cells(0, 0).CellType = textcell |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8