Spread Windows Forms 6.0 Product Documentation
RegularExpressionCellType Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > RegularExpressionCellType Class > RegularExpressionCellType Constructor : RegularExpressionCellType Constructor()


Glossary Item Box

Creates a new regular expression cell.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New RegularExpressionCellType()
C# 
public RegularExpressionCellType()

Example

This example creates a cell of this type, sets a property of this cell type, and assigns this cell type to a cell.
C#Copy Code
FarPoint.Win.Spread.CellType.RegularExpressionCellType reg = new FarPoint.Win.Spread.CellType.RegularExpressionCellType();
        reg.RegularExpression = "^\\d{9}$";
        fpSpread1.Sheets[0].Cells[0, 0].CellType = reg;
Visual BasicCopy Code
Dim reg As New FarPoint.Win.Spread.CellType.RegularExpressionCellType()
        reg.RegularExpression = "^\d{9}$"
        FpSpread1.Sheets(0).Cells(0, 0).CellType = reg

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.