## ErrorCheckOption class

تم تطبيق إعداد فحص الأخطاء على نطاقات معينة.

```csharp
public class ErrorCheckOption
```

## طُرق

| اسم | وصف |
| --- | --- |
| [AddRange](../../aspose.cells/errorcheckoption/addrange)(CellArea) | يضيف نطاقًا واحدًا متأثرًا بهذا الإعداد. |
| [GetCountOfRange](../../aspose.cells/errorcheckoption/getcountofrange)() | الحصول على عدد النطاقات التي تأثرت بهذا الإعداد. |
| [GetRange](../../aspose.cells/errorcheckoption/getrange)(int) | يحصل على النطاق المتأثر لهذا الإعداد بفهرس معين. |
| [IsErrorCheck](../../aspose.cells/errorcheckoption/iserrorcheck)(ErrorCheckType) | للتحقق مما إذا كان سيتم التحقق من نوع الخطأ المحدد. |
| [RemoveRange](../../aspose.cells/errorcheckoption/removerange)(int) | يزيل نطاقًا واحدًا بفهرس معين . |
| [SetErrorCheck](../../aspose.cells/errorcheckoption/seterrorcheck)(ErrorCheckType, bool) | يحدد ما إذا كان سيتم التحقق من نوع الخطأ المحدد. |

### أمثلة

```csharp

[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")
   
```

### أنظر أيضا

* مساحة الاسم [Aspose.Cells](../../aspose.cells)
* المجسم [Aspose.Cells](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
