Skip to main content

Enums

Excel

Constant

Description

Some constants related to spreadsheets.

Usage

  • Excel.Constant.MaxRowCount

Enum List

FieldValueDescription
MaxRowCount1048576Maximum number of rows a spreadsheet can contain
MaxColCount16384Maximum number of columns a spreadsheet can contain
MaxColWidth2045Maximum column width
MaxRowHeight546Maximum row height
MaxImportImageSize2097152Maximum size of image that can be inserted (2MB)
DefRowHeight20Default row height
DefColWidth72Default column width

BorderStyle

Description

Cell border line style.

Usage

  • Excel.BorderStyle.ThinDotted

Enum List

FieldValueDescription
ThinDottedthindottedDotted line
ThinDashedthindashedDashed line
ThinSolidthinsolidSolid line
ThickDottedthickdottedThick dotted line
ThickDashedthickdashedThick dashed line
ThickSolidthicksolidThick solid line

AlignmentStyle

Description

Text horizontal alignment.

Usage

  • Excel.AlignmentStyle.Center

Enum List

FieldValueDescription
CentercenterHorizontal center
LeftleftHorizontal left
RightrightHorizontal right

VerticalAlignmentStyle

Description

Text vertical alignment.

Usage

  • Excel.VerticalAlignmentStyle.Middle

Enum List

FieldValueDescription
MiddlemiddleVertical center
ToptopVertical top
BottombottomVertical bottom

FontStyle

Description

Font style.

Usage

  • Excel.FontStyle.Bold

Enum List

FieldValueDescription
BoldboldBold
ItalicitalicItalic
UnderlineunderlineUnderline
NormalnormalNormal
StrikethroughstrikethroughStrikethrough

FontFamily

Description

Font family.

Usage

  • Excel.FontFamily.Arial

Enum List

FieldValueDescription
ArialArialFont name
Comic Sans MSComic Sans MSFont name
Courier NewCourier NewFont name
GeorgiaGeorgiaFont name
Lucida Sans UnicodeLucida Sans UnicodeFont name
TahomaTahomaFont name
Times New RomanTimes New RomanFont name
Trebuchet MSTrebuchet MSFont name
VerdanaVerdanaFont name
宋体宋体Font name
黑体黑体Font name
微软雅黑微软雅黑Font name
隶书隶书Font name
幼圆幼圆Font name
华文细黑华文细黑Font name
华文楷体华文楷体Font name
华文宋体华文宋体Font name
华文新魏华文新魏Font name
华文隶书华文隶书Font name
等线等线Font name
仿宋仿宋Font name
楷体楷体Font name
方正舒体方正舒体Font name
方正姚体方正姚体Font name

PermissionType

Description

Type of data protection

Usage

Excel.PermissionType.ReadOnly

Enum List

FieldValueDescription
ReadOnlyreadOnlyThis area is read-only for users without edit permission
HidehideThis area is hidden for users without edit permission

NamedItemScope

Description

Scope of name object

Usage

Excel.NamedItemScope.Workbook

Enum List

FieldValueDescription
WorkbookworkbookWorkbook
WorksheetworksheetWorksheet

XlAutoFillType

Description

Method of range fill

Usage

Excel.XlAutoFillType.xlFillDefault

Enum List

FieldValueDescription
xlFillDefault0Determine the values and formats used to fill the target range
xlFillCopy1Copy the values and formats from the source range to the target range, repeating if necessary
xlFillSeries2Extend the values in the source range to the target range in series form (e.g., "1, 2" extends to "3, 4, 5"). Formats are copied from the source range to the target range, repeating if necessary

DataValidationOperator

Description

Data validation operator

Usage

Excel.DataValidationOperator

Enum List

FieldValueDescription
Between'between'Between
EqualTo'equalTo'Equal to
GreaterThan'greaterThan'Greater than
GreaterThanOrEqualTo'greaterThanOrEqualTo'Greater than or equal to
LessThan'lessThan'Less than
LessThanOrEqualTo'lessThanOrEqualTo'Less than or equal to
NotBetween'notBetween'Not between
NotEqualTo'notEqualTo'Not equal to

CustomDataValidation

Description

Custom formula data validation

Usage

Excel.CustomDataValidation

Enum List

FieldValueDescription
formulastringCustom formula

DateTimeDataValidation

Description

DateTime type data validation

Usage

Excel.DateTimeDataValidation

Enum List

FieldValueDescription
formula1(stringnumber
formula2(stringnumber
operatorDataValidationOperatorOperator

BasicDataValidation

Description Basic type data validation

Usage

Excel.BasicDataValidation

Enum List

FieldValueDescription
formula1(stringnumber
formula2(stringnumber
operatorDataValidationOperatorOperator

ListDataValidation

Description

List type data validation

Usage

Excel.ListDataValidation

Enum List

FieldValueDescription
inCellDropDownbooleanWhether dropdown is enabled
showOptionListbooleanType of dropdown list (false means sequence type, otherwise option type)
source(stringRange)

DataValidationRule

Description

Data validation rule

Usage

Excel.DataValidationRule

Enum List

FieldValueDescription
customCustomDataValidationCustom formula data validation
dateDateTimeDataValidationDate data validation
decimalBasicDataValidationNumeric data validation
listListDataValidationList data validation
textLengthBasicDataValidationText length data validation
timeDateTimeDataValidationTime data validation
wholeNumberBasicDataValidationInteger data validation

Word

WdUnderline

Description

Specifies the type of underline to apply

Usage

  • Word.WdUnderline.wdUnderlineSingle

Enum List

FieldValueDescription
wdUnderlineNone0No underline
wdUnderlineSingle1Single line. Default value

WdColorIndex

Description

Specifies the font color to apply

Usage

  • Word.WdColorIndex.wdBlack

Enum List

FieldValueDescription
wdByAuthor-1Color defined by document author
wdAuto0Auto color. Default value; usually black
wdBlack1Black
wdBlue2Blue
wdTurquoise3Turquoise
wdBrightGreen4Bright green
wdPink5Pink
wdRed6Red
wdYellow7Yellow
wdWhite8White
wdDarkBlue9Dark blue
wdTeal10Teal
wdGreen11Green
wdViolet12Violet
wdDarkRed13Dark red
wdDarkYellow14Dark yellow
wdGray501550% gray shading
wdGray251625% gray shading
wdOrigin17Orange
wdGreenLight18Light green

WdReplace

Description

Specifies the number of replacements to make when using "Find and Replace".

Usage

  • Word.WdReplace.wdReplaceAll

Enum List

FieldValueDescription
wdReplaceAll2Replace all matches
wdReplaceNone0Do not replace any matches
wdReplaceOne1Replace the first match encountered

ScopeType

Description

Get the scope type of text

Usage

  • Word.ScopeType.PARAGRAPH

Enum List

FieldValueDescription
PARAGRAPH'paragraph'Get text within paragraph scope
SENTENCE'sentence'Get text within sentence scope

DirectionType

Description

Direction

Usage

  • Word.DirectionType.SELF

Enum List

FieldValueDescription
SELF'self'Current paragraph or sentence
NEXTSIBLING'nextSibling'Next paragraph or sentence

RevisionType

Description

Revision type

Usage

  • Word.RevisionType.Insert

Enum List

FieldValueDescription
Insert'ins'Insert
Delete'del'Delete
ParagraphProperty'pPrChange'Paragraph property changed

PositionType

Description

Position type

Usage

  • Word.PositionType.Paragraph

Enum List

FieldValueDescription
Paragraph1Position in paragraph
Bookmark2Position of bookmark
PermMark3Position of editable area
Row4Position within table row

LocationRelation

JSSDK: 1.2.1、zOffice2022.3 FP1 support

Description

Position relationship between two Ranges

Usage

  • Word.LocationRelation.equal

Enum List

FieldValueDescription
before'before'range1 is before range2, no overlap but including end-to-end connection
containsStart'containsStart'range1 is before range2, partially overlapping
equal'equal'Completely overlapping
outside'outside'range1 is contained within range2, including end-to-end coincidence
containsEnd'containsEnd'range1 is after range2, partially overlapping
inside'inside'range1 contains range2, including end-to-end coincidence
behind'behind'range1 is after range2, no overlap but including end-to-end connection

MarkType

JSSDK: 1.2.21、zOffice2022.3 FP2 hotfix1 support

Description

Get the type of mark

Usage

  • Word.MarkType.PERMMARK

Enum List

FieldValueDescription
BOOKMARK'book'Bookmark type
PERMMARK'perm'Protected editable area type

WdWrapType

JSSDK: 1.3.1、zOffice V6.0 FP1 support

Description

Text wrapping type for non-embedded images

Usage

  • Word.WdWrapType.wdWrapNone

Enum List

FieldValueDescription
wdWrapNone3This is the default value of WdWrapType, same as wdWrapFront
wdWrapFront3Place image in front of text
wdWrapBehind5Place image behind text
wdWrapInline7Embed image into text

WdRevisionsView

JSSDK: 1.3.23、zOffice V6.0 FP2 hotfix 3 support

Description

Specifies whether Word displays the original version of the document or the version with revisions and formatting changes applied

Usage

  • Word.WdRevisionsView.wdRevisionsViewFinal

Enum List

FieldValueDescription
wdRevisionsViewFinal0Display document with format and content changes applied
wdRevisionsViewOriginal1Display document before changes were made

WdBuiltinStyle

JSSDK: 1.4.0、zOffice V6.1 support

Description

Specifies built-in Word styles

Usage

  • Word.WdBuiltinStyle.wdStyleHeading1

Enum List

FieldValueDescription
wdStyleNormal-1Normal text
wdStyleHeading1-2Heading 1
wdStyleHeading2-3Heading 2
wdStyleHeading3-4Heading 3
wdStyleHeading4-5Heading 4
wdStyleHeading5-6Heading 5
wdStyleHeading6-7Heading 6
wdStyleHeading7-8Heading 7
wdStyleHeading8-9Heading 8
wdStyleHeading9-10Heading 9
wdStyleTitle-63Title
wdStyleSubtitle-75Subtitle

WdOutlineLevel

JSSDK: 1.4.0、zOffice V6.1 support

Description

Specifies the outline level to apply to a paragraph.

Usage

  • Word.WdOutlineLevel.wdOutlineLevel1

Enum List

FieldValueDescription
wdOutlineLevel11Outline level 1
wdOutlineLevel22Outline level 2
wdOutlineLevel33Outline level 3
wdOutlineLevel44Outline level 4
wdOutlineLevel55Outline level 5
wdOutlineLevel66Outline level 6
wdOutlineLevel77Outline level 7
wdOutlineLevel88Outline level 8
wdOutlineLevel99Outline level 9
wdOutlineLevelBodyText10No outline level

WdHeaderFooterIndex

JSSDK: 1.4.1、zOffice V7.0 FP1 support

Description

Returns the specified header or footer in the document or section.

Usage

  • Word.WdHeaderFooterIndex.wdHeaderFooterPrimary

Enum List

FieldValueDescription
wdHeaderFooterPrimary1Returns the header or footer on all pages of the document or section except the first page (this first page is not the visual first page, but the first page after setting different first page, when not set, all pages are non-first pages)
wdHeaderFooterFirstPage2Returns the first header or footer in the document or section (first page after setting different first page)
wdHeaderFooterEvenPages3Returns all headers or footers on even pages (even pages after setting different odd and even pages)

MarksIdentifyRule

JSSDK: 1.7.01、zOffice V7.2 hotfix1 support

Description

Intelligent bookmark identification rule

Usage

  • Word.MarksIdentifyRule.TEXT

Enum List

FieldValueDescription
TEXT'text'Identify underlined areas with text content
EMPTY'empty'Identify underlined areas with empty content

MarksGenerateNameRule

JSSDK: 1.7.01、zOffice V7.2 hotfix1 support

Description

Intelligent bookmark naming rule

Usage

  • Word.MarksGenerateNameRule.ABOVE

Enum List

FieldValueDescription
ABOVE'above'Name using text content above underline
BEFORE'before'Name using text content before underline

ProtectionType

JSSDK: 1.7.2、zOffice V7.2 FP1 support

Description

Document protection type enum value

Usage

  • Word.ProtectionType.FormEntry

Enum List

FieldValueDescription
NoProtection0No protection type
FormEntry1Form entry
Revision2Revision protection
EditArea4Area editing
Comments8Comment mode

DocPermission

Description

Default permission for the entire document when the document is in area editing protection state

Usage

  • Word.DocPermission.Editable

Enum List

FieldValueDescription
ReadOnly'readOnly'Entire document is read-only
Editable'editable'Entire document is editable
None'none'Document has not enabled area editing protection

PermissionType

Description

Specifies the permission of the current user for editable areas

Usage

  • Word.PermissionType.Editable

Enum List

FieldValueDescription
ReadOnly'readOnly'Only visible
Editable'editable'Editable
Hidden'hidden'Not visible

PowerPoint

JSSDK: 1.7.0、zOffice V7.2 support

DocViewType

Description

Current operation type.

Usage

  • PowerPoint.DocViewType.SlideChange
FieldValueDescription
SlideChange0Page modification
Play1Playing

DocViewPlayAction

Description

Current operation action.

Usage

  • PowerPoint.DocViewPlayAction.forward
FieldValueDescription
forward0Forward
backward1Backward
effectFinish2Response after finishing current animation or waiting for animation to end when animation exists