.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

Document.CustomProperties Property

Provides access to a collection of the document's custom properties.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

DocumentCustomProperties CustomProperties { get; }
ReadOnly Property CustomProperties As DocumentCustomProperties
DocumentCustomProperties CustomProperties { get; }
ReadOnly Property CustomProperties As DocumentCustomProperties
DocumentCustomProperties CustomProperties { get; }
ReadOnly Property CustomProperties As DocumentCustomProperties

Property Value

Type Description
DocumentCustomProperties

A DocumentCustomProperties object that stores document's custom properties.

Property Value

Type Description
DocumentCustomProperties

A DocumentCustomProperties object that stores document's custom properties.

Property Value

Type Description
DocumentCustomProperties

A DocumentCustomProperties object that stores document's custom properties.

Examples

server.CreateNewDocument();
Document document = server.Document;
document.BeginUpdate();
document.Fields.Create(document.AppendText("\nMyNumericProperty: ").End, "DOCVARIABLE CustomProperty MyNumericProperty");
document.Fields.Create(document.AppendText("\nMyStringProperty: ").End, "DOCVARIABLE CustomProperty MyStringProperty");
document.Fields.Create(document.AppendText("\nMyBooleanProperty: ").End, "DOCVARIABLE CustomProperty MyBooleanProperty");
document.EndUpdate();

document.CustomProperties["MyNumericProperty"]= 123.45;
document.CustomProperties["MyStringProperty"]="The Final Answer";
document.CustomProperties["MyBooleanProperty"]=true;

server.CalculateDocumentVariable += DocumentPropertyDisplayHelper.OnCalculateDocumentVariable;
document.Fields.Update();
See Also