RepositoryItem.Clone() Method
Creates a copy of the current repository item.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
Returns
Type | Description |
---|---|
Object | A RepositoryItem object (or its descendant) that is a copy of the current item. |
Remarks
This method creates a new repository item of the same type that the current object is, and copies the settings and event handlers of the current item to the new item. The new repository item is returned as the method result.
This method is not intended to create deep copies of repository items. Instead, it creates shallow copies whose functinatily ensures that repository items operate as expected when used for in-place data editing.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Clone() 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.