Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DocumentCustomProperties.Add(String, Boolean) Method

Adds a new custom property with the specified name and value to the collection of custom properties for the document.

Namespace: DevExpress.XtraRichEdit.API.Native

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

void Add(
    string name,
    bool value
)

#Parameters

Name Type Description
name String

A string that specifies the name of a custom property.

value Boolean

A boolean value that specifies the value of a custom property.

#Remarks

The property is created with the type set to “Yes or no” as displayed in the Document Properties Dialog.

If the property already exists, an exception is thrown.

See Also