Back to Devexpress

RepositoryItemCollection.Remove(RepositoryItem) Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcollection-dot-remove-x28-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-x29.md

latest3.0 KB
Original Source

RepositoryItemCollection.Remove(RepositoryItem) Method

Removes the specified repository item from the collection.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void Remove(
    RepositoryItem item
)
vb
Public Overridable Sub Remove(
    item As RepositoryItem
)

Parameters

NameTypeDescription
itemRepositoryItem

A RepositoryItem descendant representing the repository item to remove.

|

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

winforms-grid-multiple-row-selection-web-style-checkboxes/CS/E1271/CheckMarkSelection.cs#L145

csharp
if(edit != null) {
    _view.GridControl.RepositoryItems.Remove(edit);
    edit.Dispose();

winforms-grid-multiple-row-selection-web-style-checkboxes/VB/E1271/CheckMarkSelection.vb#L172

vb
If edit IsNot Nothing Then
    _view.GridControl.RepositoryItems.Remove(edit)
    edit.Dispose()

See Also

Add

AddRange(RepositoryItem[])

RepositoryItemCollection Class

RepositoryItemCollection Members

DevExpress.XtraEditors.Repository Namespace