Word.Interfaces.FieldData interface
Interfaz que describe los datos devueltos mediante una llamada a field.toJSON()
.
Propiedades
code | Especifica la instrucción de código del campo. |
data | Especifica los datos de un campo "Addin". Si el campo no es un campo "Addin", lo es |
kind | Obtiene el tipo de campo. |
locked | Especifica si el campo está bloqueado.
|
result | Obtiene los datos de resultados del campo. |
type | Obtiene el tipo del campo. |
Detalles de las propiedades
code
Especifica la instrucción de código del campo.
code?: string;
Valor de propiedad
string
Comentarios
[ Conjunto de API: WordApi 1.4 ]
Nota: La capacidad de establecer el código se introdujo en WordApi 1.5.
data
Especifica los datos de un campo "Addin". Si el campo no es un campo "Addin", lo es null
y producirá una excepción general cuando el código intente establecerlo.
data?: string;
Valor de propiedad
string
Comentarios
kind
Obtiene el tipo de campo.
kind?: Word.FieldKind | "None" | "Hot" | "Warm" | "Cold";
Valor de propiedad
Word.FieldKind | "None" | "Hot" | "Warm" | "Cold"
Comentarios
locked
Especifica si el campo está bloqueado.
true
si el campo está bloqueado, false
de lo contrario.
locked?: boolean;
Valor de propiedad
boolean
Comentarios
result
Obtiene los datos de resultados del campo.
result?: Word.Interfaces.RangeData;
Valor de propiedad
Comentarios
type
Obtiene el tipo del campo.
type?: Word.FieldType | "Addin" | "AddressBlock" | "Advance" | "Ask" | "Author" | "AutoText" | "AutoTextList" | "BarCode" | "Bibliography" | "BidiOutline" | "Citation" | "Comments" | "Compare" | "CreateDate" | "Data" | "Database" | "Date" | "DisplayBarcode" | "DocProperty" | "DocVariable" | "EditTime" | "Embedded" | "EQ" | "Expression" | "FileName" | "FileSize" | "FillIn" | "FormCheckbox" | "FormDropdown" | "FormText" | "GotoButton" | "GreetingLine" | "Hyperlink" | "If" | "Import" | "Include" | "IncludePicture" | "IncludeText" | "Index" | "Info" | "Keywords" | "LastSavedBy" | "Link" | "ListNum" | "MacroButton" | "MergeBarcode" | "MergeField" | "MergeRec" | "MergeSeq" | "Next" | "NextIf" | "NoteRef" | "NumChars" | "NumPages" | "NumWords" | "OCX" | "Page" | "PageRef" | "Print" | "PrintDate" | "Private" | "Quote" | "RD" | "Ref" | "RevNum" | "SaveDate" | "Section" | "SectionPages" | "Seq" | "Set" | "Shape" | "SkipIf" | "StyleRef" | "Subject" | "Subscriber" | "Symbol" | "TA" | "TC" | "Template" | "Time" | "Title" | "TOA" | "TOC" | "UserAddress" | "UserInitials" | "UserName" | "XE" | "Empty" | "Others" | "Undefined";
Valor de propiedad
Word.FieldType | "Addin" | "AddressBlock" | "Advance" | "Ask" | "Author" | "AutoText" | "AutoTextList" | "BarCode" | "Bibliography" | "BidiOutline" | "Citation" | "Comments" | "Compare" | "CreateDate" | "Data" | "Database" | "Date" | "DisplayBarcode" | "DocProperty" | "DocVariable" | "EditTime" | "Embedded" | "EQ" | "Expression" | "FileName" | "FileSize" | "FillIn" | "FormCheckbox" | "FormDropdown" | "FormText" | "GotoButton" | "GreetingLine" | "Hyperlink" | "If" | "Import" | "Include" | "IncludePicture" | "IncludeText" | "Index" | "Info" | "Keywords" | "LastSavedBy" | "Link" | "ListNum" | "MacroButton" | "MergeBarcode" | "MergeField" | "MergeRec" | "MergeSeq" | "Next" | "NextIf" | "NoteRef" | "NumChars" | "NumPages" | "NumWords" | "OCX" | "Page" | "PageRef" | "Print" | "PrintDate" | "Private" | "Quote" | "RD" | "Ref" | "RevNum" | "SaveDate" | "Section" | "SectionPages" | "Seq" | "Set" | "Shape" | "SkipIf" | "StyleRef" | "Subject" | "Subscriber" | "Symbol" | "TA" | "TC" | "Template" | "Time" | "Title" | "TOA" | "TOC" | "UserAddress" | "UserInitials" | "UserName" | "XE" | "Empty" | "Others" | "Undefined"