Back to Devexpress

RepositoryItemAnyControl.Assign(RepositoryItem) Method

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

latest2.4 KB
Original Source

RepositoryItemAnyControl.Assign(RepositoryItem) Method

Copies settings from the repository item specified as a parameter.

Namespace : DevExpress.XtraEditors.CustomEditor

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

An object whose settings are to be copied to the current object.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

create-custom-editor-with-auto-height-functionality/CS/TreeListAutoNodeHeight/TreeListAutoNodeHeight/CustomAnyControlEditRepositoryItem.cs#L54

csharp
{
    base.Assign(item);
    CustomAnyControlEditRepositoryItem source = item as CustomAnyControlEditRepositoryItem;

See Also

RepositoryItemAnyControl Class

RepositoryItemAnyControl Members

DevExpress.XtraEditors.CustomEditor Namespace