Word.FieldType enum

Represents the type of Field.

Hinweise

[ API-Satz: WordApi 1.5 ]

Beispiele

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/50-document/manage-fields.yaml

// Inserts a Date field before selection.
await Word.run(async (context) => {
  var range = context.document.getSelection().getRange();

  const field = range.insertField(Word.InsertLocation.before, Word.FieldType.date, '\\@ "M/d/yyyy h:mm am/pm"', true);

  field.load("result,code");
  await context.sync();

  if (field.isNullObject) {
    console.log("There are no fields in this document.");
  } else {
    console.log("Code of the field: " + field.code);
    console.log("Result of the field: " + JSON.stringify(field.result));
  }
});

Felder

addin = "Addin"

Stellt dar, dass der Feldtyp Add-In ist.

addressBlock = "AddressBlock"

Stellt dar, dass der Feldtyp AddressBlock ist.

advance = "Advance"

Represents that the field type is Advance.

ask = "Ask"

Represents that the field type is Ask.

author = "Author"

Stellt dar, dass der Feldtyp Author ist.

autoText = "AutoText"

Stellt dar, dass der Feldtyp AutoText ist.

autoTextList = "AutoTextList"

Stellt dar, dass der Feldtyp AutoTextList ist.

barCode = "BarCode"

Stellt dar, dass der Feldtyp Barcode ist.

bibliography = "Bibliography"

Represents that the field type is Bibliography.

bidiOutline = "BidiOutline"

Represents that the field type is BidiOutline.

citation = "Citation"

Stellt dar, dass der Feldtyp Citation ist.

comments = "Comments"

Represents that the field type is Comments.

compare = "Compare"

Stellt dar, dass der Feldtyp Compare ist.

createDate = "CreateDate"

Stellt dar, dass der Feldtyp CreateDate ist.

data = "Data"

Stellt dar, dass der Feldtyp Data ist.

database = "Database"

Stellt dar, dass der Feldtyp Database ist.

date = "Date"

Stellt dar, dass der Feldtyp Date ist.

displayBarcode = "DisplayBarcode"

Stellt dar, dass der Feldtyp DisplayBarcode ist.

docProperty = "DocProperty"

Represents that the field type is DocumentProperty

docVariable = "DocVariable"

Stellt dar, dass der Feldtyp DocumentVariable ist.

editTime = "EditTime"

Stellt dar, dass der Feldtyp EditTime ist.

embedded = "Embedded"

Stellt dar, dass der Feldtyp Eingebettet ist.

empty = "Empty"

Stellt dar, dass der Feldtyp Leer ist.

eq = "EQ"

Stellt dar, dass der Feldtyp Gleichung ist.

expression = "Expression"

Stellt dar, dass der Feldtyp Expression ist.

fileName = "FileName"

Stellt dar, dass der Feldtyp FileName ist.

fileSize = "FileSize"

Stellt dar, dass der Feldtyp FileSize ist.

fillIn = "FillIn"

Stellt dar, dass der Feldtyp FillIn ist.

formCheckbox = "FormCheckbox"

Stellt dar, dass der Feldtyp FormCheckbox ist.

formDropdown = "FormDropdown"

Stellt dar, dass der Feldtyp FormDropdown ist.

formText = "FormText"

Stellt dar, dass der Feldtyp FormText ist.

gotoButton = "GotoButton"

Stellt dar, dass der Feldtyp GotoButton ist.

greetingLine = "GreetingLine"

Represents that the field type is GreetingLine.

hyperlink = "Hyperlink"

Stellt dar, dass der Feldtyp Hyperlink ist.

if = "If"

Stellt dar, dass der Feldtyp If ist.

import = "Import"

Stellt dar, dass der Feldtyp Import ist.

include = "Include"

Stellt dar, dass der Feldtyp Include ist.

includePicture = "IncludePicture"

Stellt dar, dass der Feldtyp IncludePicture ist.

includeText = "IncludeText"

Stellt dar, dass der Feldtyp IncludeText ist.

index = "Index"

Stellt dar, dass der Feldtyp Index ist.

info = "Info"

Stellt dar, dass der Feldtyp Information ist.

keywords = "Keywords"

Stellt dar, dass der Feldtyp Schlüsselwörter ist.

lastSavedBy = "LastSavedBy"

Stellt dar, dass der Feldtyp LastSavedBy ist.

link = "Link"

Stellt dar, dass der Feldtyp Link ist.

listNum = "ListNum"

Stellt dar, dass der Feldtyp ListNumber ist.

macroButton = "MacroButton"

Stellt dar, dass der Feldtyp MacroButton ist.

mergeBarcode = "MergeBarcode"

Stellt dar, dass der Feldtyp MergeBarcode ist.

mergeField = "MergeField"

Stellt dar, dass der Feldtyp MergeField ist.

mergeRec = "MergeRec"

Stellt dar, dass der Feldtyp MergeRecord ist.

mergeSeq = "MergeSeq"

Stellt dar, dass der Feldtyp MergeSequence ist.

next = "Next"

Stellt dar, dass der Feldtyp Weiter ist.

nextIf = "NextIf"

Stellt dar, dass der Feldtyp NextIf ist.

noteRef = "NoteRef"

Stellt dar, dass der Feldtyp NoteReference ist.

numChars = "NumChars"

Stellt dar, dass der Feldtyp NumberOfCharacters ist.

numPages = "NumPages"

Stellt dar, dass der Feldtyp NumberOfPages ist.

numWords = "NumWords"

Stellt dar, dass der Feldtyp NumberOfWords ist.

ocx = "OCX"

Stellt dar, dass der Feldtyp ActiveXControl ist.

others = "Others"

Stellt die Feldtypen dar, die von der Office JavaScript-API nicht unterstützt werden.

page = "Page"

Stellt dar, dass der Feldtyp Page ist.

pageRef = "PageRef"

Stellt dar, dass der Feldtyp PageReference ist.

print = "Print"

Stellt dar, dass der Feldtyp Print ist.

printDate = "PrintDate"

Stellt dar, dass der Feldtyp PrintDate ist.

private = "Private"

Represents that the field type is Private.

quote = "Quote"

Stellt dar, dass der Feldtyp Quote ist.

rd = "RD"

Stellt dar, dass der Feldtyp ReferencedDocument ist.

ref = "Ref"

Stellt dar, dass der Feldtyp Verweis ist.

revNum = "RevNum"

Stellt dar, dass der Feldtyp RevisionNumber ist.

saveDate = "SaveDate"

Stellt dar, dass der Feldtyp SaveDate ist.

section = "Section"

Stellt dar, dass der Feldtyp Section ist.

sectionPages = "SectionPages"

Stellt dar, dass der Feldtyp SectionPages ist.

seq = "Seq"

Stellt dar, dass der Feldtyp Sequence ist.

set = "Set"

Stellt dar, dass der Feldtyp Set ist.

shape = "Shape"

Stellt dar, dass der Feldtyp Shape ist.

skipIf = "SkipIf"

Stellt dar, dass der Feldtyp SkipIf ist.

styleRef = "StyleRef"

Stellt dar, dass der Feldtyp StyleReference ist.

subject = "Subject"

Stellt dar, dass der Feldtyp Subject ist.

subscriber = "Subscriber"

Stellt dar, dass der Feldtyp Abonnent ist.

symbol = "Symbol"

Stellt dar, dass der Feldtyp Symbol ist.

ta = "TA"

Stellt dar, dass der Feldtyp TableOfAuthoritiesEntry ist.

tc = "TC"

Stellt dar, dass der Feldtyp TableOfContentsEntry ist.

template = "Template"

Stellt dar, dass der Feldtyp Template ist.

time = "Time"

Stellt dar, dass der Feldtyp Time ist.

title = "Title"

Stellt dar, dass der Feldtyp Title ist.

toa = "TOA"

Stellt dar, dass der Feldtyp TableOfAuthorities ist.

toc = "TOC"

Stellt dar, dass der Feldtyp TableOfContents ist.

undefined = "Undefined"

Represents that the field type is Undefined.

userAddress = "UserAddress"

Stellt dar, dass der Feldtyp UserAddress ist.

userInitials = "UserInitials"

Stellt dar, dass der Feldtyp UserInitials ist.

userName = "UserName"

Stellt dar, dass der Feldtyp UserName ist.

xe = "XE"

Stellt dar, dass der Feldtyp IndexEntry ist.