Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcTextBoxCellType Class / AlternateText Property
Example


In This Topic
    AlternateText Property (GcTextBoxCellType)
    In This Topic
    Gets the alternate text of the GcTextBox control.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property AlternateText As TextBoxAlternateTextInfo
    'Usage
     
    
    Dim instance As GcTextBoxCellType
    Dim value As TextBoxAlternateTextInfo
     
    value = instance.AlternateText
    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 Text property equals the TextBoxAlternateText.Null setting, which is not null. The 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
    次のサンプルコードは、AlternateText プロパティを使用します。
    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;
    Dim textcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
    textcell.AlternateText.DisplayNull.Text = "test"
    fpSpread1.Sheets(0).Cells(0, 0).CellType = textcell
    See Also