Back to Devexpress

RepositoryItemPictureEdit.Assign(RepositoryItem) Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempictureedit-dot-assign-x28-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-x29.md

latest2.4 KB
Original Source

RepositoryItemPictureEdit.Assign(RepositoryItem) Method

Copies the settings of a specific repository item to the current one.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override void Assign(
    RepositoryItem item
)
vb
Public Overrides Sub Assign(
    item As RepositoryItem
)

Parameters

NameTypeDescription
itemRepositoryItem

A RepositoryItem object representing the source of the operation.

|

Remarks

The Assign method is used to copy public properties and events to the current RepositoryItemPictureEdit object. This makes it possible to have several picture 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 RepositoryItemPictureEdit object, all its public properties and event handlers will be copied to the current object. For other source repository item object types, only properties and event handlers of the immediate common ancestor will be assigned.

This method is used internally and you may never need to call it from your code.

See Also

RepositoryItemPictureEdit Class

RepositoryItemPictureEdit Members

DevExpress.XtraEditors.Repository Namespace