Skip to main content
A newer version of this page is available.
All docs
V18.2

FieldCollection.Add(DocumentPosition, String) Method

OBSOLETE

This method has become obsolete. Use the 'Create' method instead.

Add a field specified by its code to the field collection.

Namespace: DevExpress.XtraRichEdit.API.Native

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

Declaration

[Obsolete("This method has become obsolete. Use the 'Create' method instead.")]
Field Add(
    DocumentPosition start,
    string code
)

Parameters

Name Type Description
start DocumentPosition

A DocumentPosition representing the position at which the field is inserted.

code String

A string representing the field’s code.

Returns

Type Description
Field

A Field object representing the newly created field.

Remarks

Use the Add method to insert a new field in a document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(DocumentPosition, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also