Share via


DocumentProtectionValues Enum

Definition

Defines the DocumentProtectionValues enumeration.

public enum DocumentProtectionValues
public readonly struct DocumentProtectionValues : DocumentFormat.OpenXml.IEnumValue, DocumentFormat.OpenXml.IEnumValueFactory<DocumentFormat.OpenXml.Wordprocessing.DocumentProtectionValues>, IEquatable<DocumentFormat.OpenXml.Wordprocessing.DocumentProtectionValues>
type DocumentProtectionValues = 
type DocumentProtectionValues = struct
    interface IEnumValue
    interface IEnumValueFactory<DocumentProtectionValues>
Public Enum DocumentProtectionValues
Public Structure DocumentProtectionValues
Implements IEnumValue, IEnumValueFactory(Of DocumentProtectionValues), IEquatable(Of DocumentProtectionValues)
Inheritance
DocumentProtectionValues
Inheritance
DocumentProtectionValues

Fields

Name Value Description
None 0

No Editing Restrictions.

When the item is serialized out as xml, its value is "none".

ReadOnly 1

Allow No Editing.

When the item is serialized out as xml, its value is "readOnly".

Comments 2

Allow Editing of Comments.

When the item is serialized out as xml, its value is "comments".

TrackedChanges 3

Allow Editing With Revision Tracking.

When the item is serialized out as xml, its value is "trackedChanges".

Forms 4

Allow Editing of Form Fields.

When the item is serialized out as xml, its value is "forms".

Comments

Allow Editing of Comments.

When the item is serialized out as xml, its value is "comments".

DocumentProtectionValues(String)

Creates a new DocumentProtectionValues enum instance

Equality(DocumentProtectionValues, DocumentProtectionValues)
Equals(DocumentProtectionValues)
Equals(Object)
Forms

Allow Editing of Form Fields.

When the item is serialized out as xml, its value is "forms".

GetHashCode()
IEnumValue.IsValid
IEnumValue.Value
IEnumValue.Version
IEnumValueFactory<DocumentProtectionValues>.Create(String)
Inequality(DocumentProtectionValues, DocumentProtectionValues)
None

No Editing Restrictions.

When the item is serialized out as xml, its value is "none".

ReadOnly

Allow No Editing.

When the item is serialized out as xml, its value is "readOnly".

ToString()
TrackedChanges

Allow Editing With Revision Tracking.

When the item is serialized out as xml, its value is "trackedChanges".

Applies to