Back to Devexpress

UpdateFieldsOptions Class

aspnetcore-js-devexpress-dot-richedit-b36590e4.md

latest1.6 KB
Original Source

UpdateFieldsOptions Class

Contains field update options.

Declaration

ts
export class UpdateFieldsOptions

Remarks

javascript
var doInAllSubDocuments = true;
var updateTocFields = true;
var options = new DevExpress.RichEdit.UpdateFieldsOptions(doInAllSubDocuments, updateTocFields);
richEdit.document.fields.updateAllFields(function() {
    console.log('Updated');
}, options);

constructor

Initializes a new instance of the UpdateFieldsOptions class with specified settings.

Declaration

ts
constructor(
    doInAllSubDocuments?: boolean,
    updateTocFields?: boolean
)

Parameters

NameTypeDescription
doInAllSubDocumentsboolean

true , to update fields in all sub-documents, false , to update fields in the current sub-document only.

| | updateTocFields | boolean |

true , to update TOC fields; otherwise, false.

|

Properties

doInAllSubDocuments Property

Specifies whether to update fields in the current sub-document or in all sub-documents.

Declaration

ts
doInAllSubDocuments: boolean

Property Value

TypeDescription
boolean

true , to update fields in all sub-documents, false , to update fields in the current sub-document only.

|

updateTocFields Property

Specifies whether TOC fields should be updated.

Declaration

ts
updateTocFields: boolean

Property Value

TypeDescription
boolean

true , to update TOC fields; otherwise, false.

|