ErrorCheckOption

ErrorCheckOption class

Belirli aralıklarda uygulanan hata denetimi ayarı.

public class ErrorCheckOption

yöntemler

İsimTanım
AddRange(CellArea)Bu ayardan etkilenen bir aralık ekler.
GetCountOfRange()Bu ayardan etkilenen aralıkların sayısını alır.
GetRange(int)Belirtilen dizine göre bu ayarın etkilenen aralığını alır.
IsErrorCheck(ErrorCheckType)Verilen hata türünün kontrol edilip edilmeyeceğini kontrol eder.
RemoveRange(int)Belirtilen dizine göre bir aralığı kaldırır.
SetErrorCheck(ErrorCheckType, bool)Verilen hata türünün kontrol edilip edilmeyeceğini ayarlar.

Örnekler


[C#]

  Workbook workbook = new Workbook();
  ErrorCheckOptionCollection opts = workbook.Worksheets[0].ErrorCheckOptions;
  int optionIdx = opts.Add();
  ErrorCheckOption opt = opts[optionIdx];
  opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistFormula, false);
  opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistRange, false);
  opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextDate, false);
  opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextNumber, false);
  opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.Validation, false);
  opt.AddRange(CellArea.CreateCellArea("A1", "B10"));
  workbook.Save(@"Book1.xlsx");
  
[Visual Basic]

   Dim workbook As Workbook = New Workbook()
   Dim opts As ErrorCheckOptionCollection = workbook.Worksheets(0).ErrorCheckOptions
   Dim optionIdx As Integer = opts.Add()
   Dim opt As ErrorCheckOption = opts(optionIdx)
   opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistFormula, False)
   opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.InconsistRange, False)
   opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextDate, False)
   opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.TextNumber, False)
   opt.SetErrorCheck(Aspose.Cells.ErrorCheckType.Validation, False)
   opt.AddRange(CellArea.CreateCellArea("A1", "B10"))
   workbook.Save("Book1.xlsx")
   

Ayrıca bakınız