Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / RegExpCellType Class / RegExpCellType Constructor / RegExpCellType Constructor(String)
Message (as string) to display if the input value is not valid
Example


In This Topic
    RegExpCellType Constructor(String)
    In This Topic
    Creates a new regular expression cell with the specified message to display.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal errorMessage As String _
    )
    'Usage
     
    
    Dim errorMessage As String
     
    Dim instance As New RegExpCellType(errorMessage)
    public RegExpCellType( 
       string errorMessage
    )

    Parameters

    errorMessage
    Message (as string) to display if the input value is not valid
    Example
    This example creates a regular expression cell type (RegExpCellType object) and assigns it to the first cell in the sheet. Its ErrorMessage has been added in the constuctor. The ValidationExpression property has also been set. So if the user enters data that does not conform to the regular expression, a warning appears.
    See Also