Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItem.Clone() Method

Creates a copy of the current repository item.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual object Clone()

#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.

See Also