ODF .NET Class Library
Show/Hide TOC

# ContentValidation Class

Represents a validation rule for table cell content.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class ContentValidation

VB

    Public Class ContentValidation

Inheritance
  Object ContentValidation

## Constructors

ContentValidation | Initializes a new instance of the ContentValidation class.

## Properties

AllowEmptyCell | Specifies whether a cell can be empty. The default value for this attribute is true.
BaseCellAddress | Contains the address of the base cell for relative addresses in formulas that occur within a condition. This attribute is only necessary when the condition contains a formula. The value of this attribute shall be an absolute cell address that contains a table name.
Condition | Contains the condition that determines whether a cell content is valid in regard to a validation rule or not.
DisplayListType | Specifies whether a list of values that occurs within a condition is displayed in the UI wile entering a cell value.
ErrorMessage | Contains the message to display if a user tries to enter invalid content into a cell. That is when a validation rule's condition evaluates to “false” on the content the user attempts to enter.
HelpMessage | Contains the message to display if a user selects a cell.
Name | Contains the name of a content validation rule. It is used to reference the validation rule from the cell the rule should applied.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetHashCode | (Inherited from Object)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current ContentValidation object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf Namespace