
## Field class

Contains elements that specify functions and formulas inserted in the shape's text.

```js
new Field()
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [deepClone()](#deepclone) | Creates deep copy of this instance. |
| [getCalendar()](#getcalendar) | Determines the calendar that is used for custom properties, text fields, and element formulas. |
| [getDel()](#getdel) | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [getDisplayValue()](#getdisplayvalue) | Gets the formatted string value of this field . |
| [getEditMode()](#geteditmode) | Reserved for future use. |
| [getFormat()](#getformat) | Format element specifies the formatting for a text field that is a string, number, date or time, duration, or currency.  |
| [getIX()](#getix) | The zero-based index of the element within its parent element. |
| [getObjectKind()](#getobjectkind) | Indicates the type of text field. |
| [getType()](#gettype) | Type specifies a data type for the text field value. |
| [getUICat()](#getuicat) | Specifies the category of an inserted field in versions of Microsoft Visio earlier than Visio 2000. |
| [getUICod()](#getuicod) | Specifies the code of an inserted field in versions of Microsoft Visio earlier than Visio 2000. |
| [getUIFmt()](#getuifmt) | Specifies the format of an inserted field in versions of Microsoft Visio earlier than Visio 2000. |
| [getValue()](#getvalue) | It contains the value for a text field. |
| [setDel()](#setdel) | A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca |
| [setIX()](#setix) | The zero-based index of the element within its parent element. |

### deepClone() {#deepclone}

Creates deep copy of this instance.

**Returns:** Object — `Object`

### getCalendar() {#getcalendar}

Determines the calendar that is used for custom properties, text fields, and element formulas.

### getDel() {#getdel}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

### getDisplayValue() {#getdisplayvalue}

Gets the formatted string value of this field .

### getEditMode() {#geteditmode}

Reserved for future use.

### getFormat() {#getformat}

Format element specifies the formatting for a text field that is a string, number, date or time, duration, or currency. The text field type is specified in the corresponding Type element.

### getIX() {#getix}

The zero-based index of the element within its parent element.

### getObjectKind() {#getobjectkind}

Indicates the type of text field.

### getType() {#gettype}

Type specifies a data type for the text field value.

### getUICat() {#getuicat}

Specifies the category of an inserted field in versions of Microsoft Visio earlier than Visio 2000.

### getUICod() {#getuicod}

Specifies the code of an inserted field in versions of Microsoft Visio earlier than Visio 2000.

### getUIFmt() {#getuifmt}

Specifies the format of an inserted field in versions of Microsoft Visio earlier than Visio 2000.

### getValue() {#getvalue}

It contains the value for a text field.

### setDel() {#setdel}

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

### setIX() {#setix}

The zero-based index of the element within its parent element.
