Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcDateTimeCellType Class / AlternateText Property
Example


In This Topic
    AlternateText Property (GcDateTimeCellType)
    In This Topic
    Gets the alternate text of the GcDateTimeCellType object.
    Syntax
    'Declaration
     
    Public ReadOnly Property AlternateText As DateAlternateTextInfo
    'Usage
     
    Dim instance As GcDateTimeCellType
    Dim value As DateAlternateTextInfo
     
    value = instance.AlternateText
    public DateAlternateTextInfo AlternateText {get;}

    Property Value

    A DateAlternateText value that indicates the alternate text.
    Remarks
    This property is set to show alternative text when the control value is empty era or null in edit mode and display mode.
    Example
    This example uses the AlternateText property.
    GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
    datecell.AlternateText.DisplayNull.Text = "test";
    fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
    Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
    datecell.AlternateText.DisplayNull.Text = "test"
    fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
    See Also