Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

DocumentCustomProperties.Add(String, Bookmark) Method

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

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

void Add(
    string name,
    Bookmark value
)

Parameters

Name Type Description
name String

A string that specifies the name of a custom property.

value Bookmark

A Bookmark object that specifies the content that will be used to obtain the value of a custom property.

Remarks

The property is created with the type set to “Text” as displayed in the Document Properties Dialog and linked to the specified bookmark .

If the property already exists, an exception is thrown.

See Also