Word.FieldType enum
Wordの種類を表します。Field オブジェクト。
注釈
例
// 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) => {
const range: Word.Range = context.document.getSelection().getRange();
const field: Word.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, "Result of the field: " + JSON.stringify(field.result));
}
});
フィールド
| addin = "Addin" | フィールドの種類がアドインであることを表します。 |
| addressBlock = "AddressBlock" | フィールドの種類が AddressBlock であることを表します。 |
| advance = "Advance" | フィールドの種類が Advance であることを表します。 |
| ask = "Ask" | フィールドの種類が Ask であることを表します。 |
| author = "Author" | フィールドの種類が Author であることを表します。 |
| autoText = "AutoText" | フィールドの種類が定型句であることを表します。 |
| autoTextList = "AutoTextList" | フィールド型が AutoTextList であることを表します。 |
| barCode = "BarCode" | フィールドの種類が Barcode であることを表します。 |
| bibliography = "Bibliography" | フィールドの種類が文献目録であることを表します。 |
| bidiOutline = "BidiOutline" | フィールドの種類が BidiOutline であることを表します。 |
| citation = "Citation" | フィールドの種類が引用であることを表します。 |
| comments = "Comments" | フィールドの種類が Comments であることを表します。 |
| compare = "Compare" | フィールドの種類が Compare であることを表します。 |
| createDate = "CreateDate" | フィールドの種類が CreateDate であることを表します。 |
| data = "Data" | フィールド型が Data であることを表します。 |
| database = "Database" | フィールドの種類が Database であることを表します。 |
| date = "Date" | フィールドの種類が Date であることを表します。 |
| displayBarcode = "DisplayBarcode" | フィールド型が DisplayBarcode であることを表します。 |
| docProperty = "DocProperty" | フィールドの種類が DocumentProperty であることを表します |
| docVariable = "DocVariable" | フィールドの種類が DocumentVariable であることを表します。 |
| editTime = "EditTime" | フィールドの種類が EditTime であることを表します。 |
| embedded = "Embedded" | フィールドの種類が Embedded であることを表します。 |
| empty = "Empty" | フィールドの種類が空であることを表します。 |
| eq = "EQ" | フィールドの種類が数式であることを表します。 |
| expression = "Expression" | フィールド型が Expression であることを表します。 |
| fileName = "FileName" | フィールドの種類が FileName であることを表します。 |
| fileSize = "FileSize" | フィールドの種類が FileSize であることを表します。 |
| fillIn = "FillIn" | フィールドの種類が FillIn であることを表します。 |
| formCheckbox = "FormCheckbox" | フィールド型が FormCheckbox であることを表します。 |
| formDropdown = "FormDropdown" | フィールドの種類が FormDropdown であることを表します。 |
| formText = "FormText" | フィールド型が FormText であることを表します。 |
| gotoButton = "GotoButton" | フィールド型が GotoButton であることを表します。 |
| greetingLine = "GreetingLine" | フィールドの種類が GreetingLine であることを表します。 |
| hyperlink = "Hyperlink" | フィールドの種類が Hyperlink であることを表します。 |
| if = "If" | フィールドの種類が If であることを表します。 |
| import = "Import" | フィールドの種類が Import であることを表します。 |
| include = "Include" | フィールドの種類が [含める] であることを表します。 |
| includePicture = "IncludePicture" | フィールドの種類が IncludePicture であることを表します。 |
| includeText = "IncludeText" | フィールド型が IncludeText であることを表します。 |
| index = "Index" | フィールドの種類が Index であることを表します。 |
| info = "Info" | フィールドの種類が Information であることを表します。 |
| keywords = "Keywords" | フィールドの種類が [キーワード] であることを表します。 |
| lastSavedBy = "LastSavedBy" | フィールドの種類が LastSavedBy であることを表します。 |
| link = "Link" | フィールドの種類が Link であることを表します。 |
| listNum = "ListNum" | フィールドの種類が ListNumber であることを表します。 |
| macroButton = "MacroButton" | フィールド型が MacroButton であることを表します。 |
| mergeBarcode = "MergeBarcode" | フィールドの種類が MergeBarcode であることを表します。 |
| mergeField = "MergeField" | フィールドの種類が MergeField であることを表します。 |
| mergeRec = "MergeRec" | フィールドの種類が MergeRecord であることを表します。 |
| mergeSeq = "MergeSeq" | フィールド型が MergeSequence であることを表します。 |
| next = "Next" | フィールドの種類が [次へ] であることを表します。 |
| nextIf = "NextIf" | フィールドの種類が NextIf であることを表します。 |
| noteRef = "NoteRef" | フィールド型が NoteReference であることを表します。 |
| numChars = "NumChars" | フィールド型が NumberOfCharacters であることを表します。 |
| numPages = "NumPages" | フィールドの種類が NumberOfPages であることを表します。 |
| numWords = "NumWords" | フィールドの種類が NumberOfWords であることを表します。 |
| ocx = "OCX" | フィールドの種類が ActiveXControl であることを表します。 |
| others = "Others" | Office JavaScript API でサポートされていないフィールドの種類を表します。 |
| page = "Page" | フィールドの種類が Page であることを表します。 |
| pageRef = "PageRef" | フィールド型が PageReference であることを表します。 |
| print = "Print" | フィールドの種類が Print であることを表します。 |
| printDate = "PrintDate" | フィールドの種類が PrintDate であることを表します。 |
| private = "Private" | フィールドの種類が Private であることを表します。 |
| quote = "Quote" | フィールドの種類が Quote であることを表します。 |
| rd = "RD" | フィールド型が ReferencedDocument であることを表します。 |
| ref = "Ref" | フィールドの種類が [参照] であることを表します。 |
| revNum = "RevNum" | フィールドの種類が RevisionNumber であることを表します。 |
| saveDate = "SaveDate" | フィールドの種類が SaveDate であることを表します。 |
| section = "Section" | フィールドの種類が Section であることを表します。 |
| sectionPages = "SectionPages" | フィールドの種類が SectionPages であることを表します。 |
| seq = "Seq" | フィールドの種類が Sequence であることを表します。 |
| set = "Set" | フィールドの種類が Set であることを表します。 |
| shape = "Shape" | フィールドの種類が Shape であることを表します。 |
| skipIf = "SkipIf" | フィールドの種類が SkipIf であることを表します。 |
| styleRef = "StyleRef" | フィールド型が StyleReference であることを表します。 |
| subject = "Subject" | フィールドの種類が Subject であることを表します。 |
| subscriber = "Subscriber" | フィールドの種類がサブスクライバーであることを表します。 |
| symbol = "Symbol" | フィールドの種類が Symbol であることを表します。 |
| ta = "TA" | フィールド型が TableOfAuthoritiesEntry であることを表します。 |
| tc = "TC" | フィールド型が TableOfContentsEntry であることを表します。 |
| template = "Template" | フィールドの種類が Template であることを表します。 |
| time = "Time" | フィールドの種類が Time であることを表します。 |
| title = "Title" | フィールドの種類が Title であることを表します。 |
| toa = "TOA" | フィールド型が TableOfAuthorities であることを表します。 |
| toc = "TOC" | フィールド型が TableOfContents であることを表します。 |
| undefined = "Undefined" | フィールドの種類が Undefined であることを表します。 |
| userAddress = "UserAddress" | フィールドの種類が UserAddress であることを表します。 |
| userInitials = "UserInitials" | フィールド型が UserInitials であることを表します。 |
| userName = "UserName" | フィールドの種類が UserName であることを表します。 |
| xe = "XE" | フィールド型が IndexEntry であることを表します。 |