RepositoryItemMemoEdit.Assign(RepositoryItem) Method
Copies the settings of a repository item.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
item | RepositoryItem | A RepositoryItem object representing the source object. |
Remarks
The Assign method is used to copy public properties and event handlers from the source repository item specified by the item parameter to the current RepositoryItemMemoEdit object. This makes it possible to have several memo editors with the same behavior and look & feel.
The item parameter can represent any RepositoryItem-derived object. The Assign method copies properties common to the source and to the current repository item. Thus, if the source is a RepositoryItemMemoEdit object, all its public properties and event handlers will be copied. For other types of source repository item object, only properties and event handlers of the immediate common ancestor will be assigned.
This method is used internally and you’ll rarely need to call it from your code.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Assign(RepositoryItem) 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.