DataValidations class
Defines the DataValidations Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is x14:dataValidations.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Office2010.Excel.DataValidations
Namespace: DocumentFormat.OpenXml.Office2010.Excel
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
2.4.7 dataValidations
Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main
The dataValidations element is a CT_DataValidations type element, as specified in section 2.6.3, that specifies a group of data validation items on the sheet (1). This element also specifies data validation properties of a sheet (1) that are used by the application user interface. See section 2.2.4.11 for how this element integrates with the Office Open XML file formats specified in [ISO/IEC-29500-1].
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.
<xsd:element name="dataValidations" type="CT_DataValidations"/>
See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).
2.6.3 CT_DataValidations
Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main
Referenced by: dataValidations
CT_DataValidations is a complex type that specifies a group of data validation items on the sheet (1). MUST contain less than or equal to 65,534 elements. This complex type also specifies data validation properties of a sheet (1) that are used by the application UI.
Child Elements:
dataValidation: A CT_DataValidation element (section 2.6.5) that specifies the properties for a single data validation item defined on a range of the sheet (1).
Attributes:
disablePrompts: A Boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether all data validation input prompts are disabled for this sheet (1).
xWindow: An unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that specifies the x-coordinate, relative to the application window, of the upper-left corner of the data validation input prompt, measured in pixels. This value MUST be less than or equal to 65,535. <44>
yWindow: An unsignedInt attribute that specifies the y-coordinate, relative to the application window, of the upper-left corner of the data validation input prompt, measured in pixels. This value MUST be less than or equal to 65,535. <45>
count: An unsignedInt attribute that specifies the number of dataValidation child elements of this element.
The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.
<xsd:complexType name="CT_DataValidations">
<xsd:sequence>
<xsd:element name="dataValidation" type="CT_DataValidation" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="disablePrompts" type="xsd:boolean" use="optional" default="false"/>
<xsd:attribute name="xWindow" type="xsd:unsignedInt" use="optional"/>
<xsd:attribute name="yWindow" type="xsd:unsignedInt" use="optional"/>
<xsd:attribute name="count" type="xsd:unsignedInt" use="optional"/>
</xsd:complexType>
See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).