IsDocumentPropertyReadOnly()

Syntax

IsDocumentPropertyReadOnly(Name$ [, CustomOrBuiltIn ])

Remarks

Returns 1 if the Name$ property is read-only. If Name$ is not a valid property, an error occurs. Use the DocumentPropertyExists() function to verify that the Name$ property exists.

For a list of the built-in properties available in Word, see DocumentPropertyName$(). In Word version 6.0, IsDocumentPropertyReadOnly() is unavailable and generates an error.

Argument

Explanation

Name$

The name of the property.

CustomOrBuiltIn

Specifies whether Name$ is a custom property or a built-in property:

0 (zero) or omitted Name$ is a custom property unless it appears in the list of built-in properties.

1 Name$ is a built-in property. If it is not one of the built-in properties, an error occurs.

2 Name$ is a custom property, regardless of whether a built-in property with the same name already exists.


See Also

DocumentPropertyExists(), DocumentPropertyName$(), DocumentPropertyType(), IsCustomDocumentProperty()