public void CreateNumberCell1() { NumberCellType numberCellType1 = new NumberCellType(); //Editing value cannot delete to null. numberCellType1.AllowDeleteToNull = false; numberCellType1.NegativeForeground = new SolidColorBrush(Colors.Pink); numberCellType1.ShowRecommendedValue = true; numberCellType1.RecommendedValue = 100; this._gcSpreadGrid1[0, 0].CellType = numberCellType1; }
Public Sub CreateNumberCell1() Dim numberCellType1 As New NumberCellType() 'Editing value cannot delete to null. numberCellType1.AllowDeleteToNull = False numberCellType1.NegativeForeground = New SolidColorBrush(Colors.Pink) numberCellType1.ShowRecommendedValue = True numberCellType1.RecommendedValue = 100 Me._gcSpreadGrid1(0, 0).CellType = numberCellType1 End Sub