ProtectionType

ProtectionType

Overview

ProtectionType is an enum in Aspose.Words FOSS for Java.

Protection type for a document.

Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 9 not yet exercised by a verified example.

This enum declares 4 methods for ProtectionType objects in Java programs. Available methods include: fromName, getName, getValues, toString. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: values.

Values

ValueDescription
ALLOW_ONLY_COMMENTSUser can only modify comments in the document.
ALLOW_ONLY_FORM_FIELDSUser can only enter data in the form fields in the document.
ALLOW_ONLY_REVISIONSUser can only add revision marks to the document.
READ_ONLYNo changes are allowed to the document.
NO_PROTECTIONThe document is not protected.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of ProtectionType values.

Methods

SignatureDescription
getName(protectionType: int) → StringReturns JAVA_STYLE string representation of integer ProtectionType value.
toString(protectionType: int) → StringReturns DotNetStyle string representation of integer ProtectionType value.
fromName(protectionTypeName: String) → intReturns integer representation by ProtectionType name.
getValues() → int[]Returns array of ProtectionType values.

See Also