Back to Devexpress

FieldOptions.UpdateDocVariablesBeforeCopy Property

officefileapi-devexpress-dot-xtrarichedit-dot-fieldoptions-0b9370fc.md

latest2.3 KB
Original Source

FieldOptions.UpdateDocVariablesBeforeCopy Property

Specifies whether to refresh the values of document variables when they are to be copied to the Clipboard.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(true)]
public bool UpdateDocVariablesBeforeCopy { get; set; }
vb
<DefaultValue(True)>
Public Property UpdateDocVariablesBeforeCopy As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to ensure that the copied values are up to date; otherwise false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UpdateDocVariablesBeforeCopy
RichEditControlOptionsBase

.Fields .UpdateDocVariablesBeforeCopy

|

Remarks

The UpdateDocVariablesBeforePrint Property in DOCX and RTF Documents

The UpdateDocVariablesBeforePrint setting is stored in the document in OpenXml (.docx) format. Microsoft Word preserves this setting when a document is saved, but ignores it. The setting specifies whether to update the DOCVARIABLE field before the document is printed/exported, or before the field is copied. The option also affects the DOCVARIABLE fields update when RTF content is imported.

See Also

UpdateDocVariablesBeforePrint

FieldOptions Class

FieldOptions Members

DevExpress.XtraRichEdit Namespace