ProtectedRanges class
TOC
Collapse the table of content
Expand the table of content

ProtectedRanges class

Office 2013 and later

Defines the ProtectedRanges Class. When the object is serialized out as xml, its qualified name is x:protectedRanges.

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

[ChildElementInfoAttribute(typeof(ProtectedRange))]
public class ProtectedRanges : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

protectedRanges (Protected Ranges)

This collection specifies all protected ranges on this worksheet.

[Example:

This example demonstrates that A1:C5 have been protected, with no password specified.

<protectedRanges>
  <protectedRange sqref="A1:C5" name="Range1"/>
</protectedRanges>

end example]

Parent Elements

worksheet (§18.3.1.99)

Child Elements

Subclause

protectedRange (Protected Range)

§18.3.1.71

[Note: The W3C XML Schema definition of this element’s content model (CT_ProtectedRanges) is located in §A.2. end note]

© ISO/IEC29500: 2008.

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:
© 2016 Microsoft