ProtectedRanges class

Office 2013 and later

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

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

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.4.10 protectedRanges

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

A protectedRanges element is a CT_ProtectedRanges type element, as specified in section 2.6.55, that specifies a group of protected ranges on the sheet (1). 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="protectedRanges" type="CT_ProtectedRanges"/>

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

2.6.55 CT_ProtectedRanges

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

Referenced by: protectedRanges

A complex type that specifies a group of protected ranges on the sheet (1). MUST contain fewer than 231 elements.

Child Elements:

protectedRange: A CT_ProtectedRange element that specifies the properties for a single protected range.

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

<xsd:complexType name="CT_ProtectedRanges">

<xsd:sequence>

<xsd:element name="protectedRange" type="CT_ProtectedRange" minOccurs="1" maxOccurs="unbounded"/>

</xsd:sequence>

</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: