Open topic with navigation

# DocumentClass

## Description

Indicates which general class the currently opened document belongs to. This property is read-only.

The classes are as follows:

`1` – Text document (ASCII) | `6` – Fax document (FAX)
`2` – Word processor document (WP) | `7` – Presentation (PG)
`3` – Spreadsheet document (SS) | `8` – Archive document
`4` – Image (Image) | `9` – Other
`5` – Multimedia document (MM) |

The document class is useful to determine whether a specific set of properties is applicable to the currently opened document. The codes specified in the brackets above are prefixes used for all persistent properties specific to that document type.

For example, a multimedia document has a `DocumentClass` of 5, and the properties `MMPlayOption` and `MMScaleMovie` are relevant only to multimedia documents. The value of these properties is ignored for any other kind of document.

The one exception to the above rule is the `WPPageLayout` property, which is applicable to both text and word processor documents.

## Returns

Type | Description
--- | ---
Short | The document class (a value of `1` through `9`, as described above).

© Copyright 2016-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm