Field

Field class

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

new Field()

Constructor.

Methods

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

deepClone()

Creates deep copy of this instance.

Returns: Object — Object

getCalendar()

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

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()

Gets the formatted string value of this field .

getEditMode()

Reserved for future use.

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()

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

getObjectKind()

Indicates the type of text field.

getType()

Type specifies a data type for the text field value.

getUICat()

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

getUICod()

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

getUIFmt()

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

getValue()

It contains the value for a text field.

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()

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