Partager via


Protection Class

Protection.When the object is serialized out as xml, its qualified name is c:protection.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Charts.Protection

Namespace:  DocumentFormat.OpenXml.Drawing.Charts
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(Formatting))> _
<ChildElementInfoAttribute(GetType(ChartObject))> _
<ChildElementInfoAttribute(GetType(Data))> _
<ChildElementInfoAttribute(GetType(Selection))> _
<ChildElementInfoAttribute(GetType(UserInterface))> _
Public Class Protection _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Protection
[ChildElementInfoAttribute(typeof(Formatting))]
[ChildElementInfoAttribute(typeof(ChartObject))]
[ChildElementInfoAttribute(typeof(Data))]
[ChildElementInfoAttribute(typeof(Selection))]
[ChildElementInfoAttribute(typeof(UserInterface))]
public class Protection : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • ChartObject <c:chartObject>

  • Data <c:data>

  • Formatting <c:formatting>

  • Selection <c:selection>

  • UserInterface <c:userInterface>

[ISO/IEC 29500-1 1st Edition]

21.2.2.149 protection (Protection)

This element specifies protection for the chart. If the chart is on a protected worksheet or chart sheet, then these settings shall control how a user is able to interact with the chart.

Parent Elements

chartSpace (§21.2.2.29)

Child Elements

Subclause

chartObject (Chart Object)

§21.2.2.28

data (Data Cannot Be Changed)

§21.2.2.37

formatting (Formatting)

§21.2.2.72

selection (Selection)

§21.2.2.165

userInterface (User Interface)

§21.2.2.219

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also

Reference

Protection Members

DocumentFormat.OpenXml.Drawing.Charts Namespace