ConditionalFormatting class

Office 2013 and later

Defines the ConditionalFormatting Class.This class is available in Office2010 or above. When the object is serialized out as xml, its qualified name is x14:conditionalFormatting.

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Office2010.Excel.ConditionalFormatting

Namespace:  DocumentFormat.OpenXml.Office2010.Excel
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

2.6.2 CT_ConditionalFormatting

Target namespace: http://schemas.microsoft.com/office/spreadsheetml/2009/9/main

Referenced by: CT_ConditionalFormattings

The CT_ConditionalFormatting complex type specifies conditional formatting properties for a range.

Child Elements:

cfRule: A CT_CfRule element (section 2.6.27) that specifies a conditional formatting rule for this range.

xm:sqref: A sqref element (section 2.4.5) that specifies the range this conditional formatting applies to.

extLst: A CT_ExtensionList ([ISO/IEC-29500-4] section A.2) element that specifies future extensibility for this element.

Attributes:

pivot: A Boolean ([XMLSCHEMA2] section 3.2.2) attribute that specifies whether this conditional formatting is applied only to a PivotTable. MUST be a value from the following table.

Value

Meaning

"true"

The area specified by sqref only includes cells that are part of a PivotTable data area.

"false"

The area specified by sqref includes cells that are not part of a PivotTable data area.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_ConditionalFormatting">

<xsd:sequence>

<xsd:element name="cfRule" type="CT_CfRule" minOccurs="0" maxOccurs="unbounded"/>

<xsd:element ref="xm:sqref" minOccurs="0" maxOccurs="1"/>

<xsd:element name="extLst" minOccurs="0" type="x:CT_ExtensionList"/>

</xsd:sequence>

<xsd:attribute name="pivot" type="xsd:boolean" default="false" use="optional"/>

</xsd:complexType>

See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: