Spread Windows Forms 12.0 Product Documentation
SurrogateCharValidator Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SurrogateCharValidator Class > SurrogateCharValidator Constructor : SurrogateCharValidator Constructor()
Represents the default empty constructor.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New SurrogateCharValidator()
public SurrogateCharValidator()
Example
This example uses the surrograte character validator.
FarPoint.Win.Spread.CellStyleNotify cnotify = new FarPoint.Win.Spread.CellStyleNotify();
cnotify.InvalidCellStyle.BackColor = Color.Aqua;
FarPoint.Win.Spread.SurrogateCharValidator surchar = new FarPoint.Win.Spread.SurrogateCharValidator();
surchar.Actions.Add(cnotify);
fpSpread1.Sheets[0].AddValidators(new FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), surchar);
fpSpread1.Sheets[0].Cells[1, 1].Value = 5;
//fpSpread1.Sheets[0].Cells[1, 1].Value = "In the game of mahjong \U0001F01C denotes the Four of circles";
Dim cnotify As New FarPoint.Win.Spread.CellStyleNotify()
cnotify.InvalidCellStyle.BackColor = Color.Aqua
Dim surchar As New FarPoint.Win.Spread.SurrogateCharValidator()
surchar.Actions.Add(cnotify)
FpSpread1.Sheets(0).AddValidators(New FarPoint.Win.Spread.Model.CellRange(1, 1, 1, 1), surchar)
FpSpread1.Sheets(0).Cells(1, 1).Value = 5
'FpSpread1.Sheets(0).Cells(1, 1).Text = "In the game of mahjong" + Char.ConvertFromUtf32(&H1F01C) + "denotes the Four Of circles"
See Also

Reference

SurrogateCharValidator Class
SurrogateCharValidator Members
Overload List