Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / TextCellType Class / ErrorMessage Property
Example


In This Topic
    ErrorMessage Property (TextCellType)
    In This Topic
    Gets or sets the error message for the cell type. This property is used by the derived classes.
    Syntax
    'Declaration
     
    Public Overridable Property ErrorMessage As String
    'Usage
     
    Dim instance As TextCellType
    Dim value As String
     
    instance.ErrorMessage = value
     
    value = instance.ErrorMessage
    public virtual string ErrorMessage {get; set;}
    Example
    This example sets the ErrorMessage property.
    FarPoint.Web.Spread.TextCellType textcell = new FarPoint.Web.Spread.TextCellType();
    textcell.ErrorMessage = "Error";            
    FpSpread1.ActiveSheetView.Cells[0, 0].CellType = textcell;
    Dim textcell As New FarPoint.Web.Spread.TextCellType()
    textcell.ErrorMessage = "Error"
    FpSpread1.ActiveSheetView.Cells(0, 0).CellType = textcell
    See Also