# ValidationRule Class

> ValidationRule class in the TX Sheet Control .NET API: Cell constraints shared with the editor. Covers 1 constructor and 16 properties and a C# example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Implements:** `System.IEquatable<TXTextControl.TXSheetControl.Server.ValidationRule>`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > ValidationRule Class
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/#syntax)
- [Members](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/#members)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/#see-also)

---

## In This Section

- [ValidationRule.AllowBlank Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/allowblank-property/llms.txt): ValidationRule.AllowBlank property in the TX Sheet Control .NET API, with its syntax, its type bool?, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/constructor/llms.txt): ValidationRule constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.ErrorMessage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/errormessage-property/llms.txt): ValidationRule.ErrorMessage property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ValidationRule.ErrorStyle Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/errorstyle-property/llms.txt): ValidationRule.ErrorStyle property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ValidationRule.ErrorTitle Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/errortitle-property/llms.txt): ValidationRule.ErrorTitle property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ValidationRule.Formula1 Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/formula1-property/llms.txt): ValidationRule.Formula1 property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.Formula2 Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/formula2-property/llms.txt): ValidationRule.Formula2 property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.Id Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/id-property/llms.txt): ValidationRule.Id property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.InputMessage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/inputmessage-property/llms.txt): ValidationRule.InputMessage property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ValidationRule.InputTitle Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/inputtitle-property/llms.txt): ValidationRule.InputTitle property in the TX Sheet Control .NET API, with its syntax, its type string? and a C# example.
- [ValidationRule.Operator Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/operator-property/llms.txt): ValidationRule.Operator property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.Range Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/range-property/llms.txt): ValidationRule.Range property in the TX Sheet Control .NET API, with its syntax, its type string?, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.ShowDropdown Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/showdropdown-property/llms.txt): ValidationRule.ShowDropdown property in the TX Sheet Control .NET API, with its syntax, its type bool? and a C# example.
- [ValidationRule.ShowErrorMessage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/showerrormessage-property/llms.txt): ValidationRule.ShowErrorMessage property in the TX Sheet Control .NET API, with its syntax, its type bool? and a C# example.
- [ValidationRule.ShowInputMessage Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/showinputmessage-property/llms.txt): ValidationRule.ShowInputMessage property in the TX Sheet Control .NET API, with its syntax, its type bool? and a C# example.
- [ValidationRule.Type Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/type-property/llms.txt): ValidationRule.Type property in the TX Sheet Control .NET API, with its syntax, its type string, a C# example and remarks on awaiting tasks and handles.
- [ValidationRule.Values Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/values-property/llms.txt): ValidationRule.Values property in the TX Sheet Control .NET API, with its syntax, its type string[], a C# example and remarks on awaiting tasks and handles.

---

## Nearby

- **Previous:** [ValidationFailure.Rule Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationfailure/rule-property/llms.txt)
- **Next:** [ValidationRule Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/validationrule/constructor/llms.txt)
