
**Inheritance:**
java.lang.Object
```
public class MailMergeMainDocumentType
```

Specifies the possible types for a mail merge source document.
## Fields

| Field | Description |
| --- | --- |
| [CATALOG](#CATALOG) | Specifies that the mail merge source document is of the catalog type. |
| [DEFAULT](#DEFAULT) | Equals to [NOT\_A\_MERGE\_DOCUMENT](../../com.aspose.words/mailmergemaindocumenttype/\#NOT-A-MERGE-DOCUMENT) |
| [EMAIL](#EMAIL) | Specifies that the mail merge source document is of the e-mail message type. |
| [ENVELOPES](#ENVELOPES) | Specifies that the mail merge source document is of the envelope type. |
| [FAX](#FAX) | Specifies that the mail merge source document is of the fax type. |
| [FORM_LETTERS](#FORM-LETTERS) | Specifies that the mail merge source document is of the form letter type. |
| [MAILING_LABELS](#MAILING-LABELS) | Specifies that the mail merge source document is of the mailing label type. |
| [NOT_A_MERGE_DOCUMENT](#NOT-A-MERGE-DOCUMENT) | This document is not a mail merge document. |
| [length](#length) |  |
## Methods

| Method | Description |
| --- | --- |
| [fromName(String mailMergeMainDocumentTypeName)](#fromName-java.lang.String) |  |
| [getName(int mailMergeMainDocumentType)](#getName-int) |  |
| [getValues()](#getValues) |  |
| [toString(int mailMergeMainDocumentType)](#toString-int) |  |
### CATALOG {#CATALOG}
```
public static int CATALOG
```


Specifies that the mail merge source document is of the catalog type.

### DEFAULT {#DEFAULT}
```
public static int DEFAULT
```


Equals to [NOT\_A\_MERGE\_DOCUMENT](../../com.aspose.words/mailmergemaindocumenttype/\#NOT-A-MERGE-DOCUMENT)

### EMAIL {#EMAIL}
```
public static int EMAIL
```


Specifies that the mail merge source document is of the e-mail message type.

### ENVELOPES {#ENVELOPES}
```
public static int ENVELOPES
```


Specifies that the mail merge source document is of the envelope type.

### FAX {#FAX}
```
public static int FAX
```


Specifies that the mail merge source document is of the fax type.

### FORM_LETTERS {#FORM-LETTERS}
```
public static int FORM_LETTERS
```


Specifies that the mail merge source document is of the form letter type.

### MAILING_LABELS {#MAILING-LABELS}
```
public static int MAILING_LABELS
```


Specifies that the mail merge source document is of the mailing label type.

### NOT_A_MERGE_DOCUMENT {#NOT-A-MERGE-DOCUMENT}
```
public static int NOT_A_MERGE_DOCUMENT
```


This document is not a mail merge document.

### length {#length}
```
public static int length
```


### fromName(String mailMergeMainDocumentTypeName) {#fromName-java.lang.String}
```
public static int fromName(String mailMergeMainDocumentTypeName)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailMergeMainDocumentTypeName | java.lang.String |  |

**Returns:**
int
### getName(int mailMergeMainDocumentType) {#getName-int}
```
public static String getName(int mailMergeMainDocumentType)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailMergeMainDocumentType | int |  |

**Returns:**
java.lang.String
### getValues() {#getValues}
```
public static int[] getValues()
```




**Returns:**
int[]
### toString(int mailMergeMainDocumentType) {#toString-int}
```
public static String toString(int mailMergeMainDocumentType)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| mailMergeMainDocumentType | int |  |

**Returns:**
java.lang.String
