Back to Devexpress

RepositoryItemCollection.AddRange(RepositoryItem[]) Method

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

latest4.4 KB
Original Source

RepositoryItemCollection.AddRange(RepositoryItem[]) Method

Adds an array of repository items to the collection.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void AddRange(
    RepositoryItem[] items
)
vb
Public Overridable Sub AddRange(
    items As RepositoryItem()
)

Parameters

NameTypeDescription
itemsRepositoryItem[]

An array of RepositoryItem descendants to be added to the collection.

|

Remarks

The AddRange method adds a group of existing repository items to the collection. Individual repository items can be added using the RepositoryItemCollection.Add method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddRange(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-pivotgrid-assign-in-place-editors-to-different-types-of-cells/CS/PivotGridControl_CustomCellEdit/Form1.cs#L19

csharp
// Initializes cell editors used to represent values of regular and total cells respectively.
pivotGridControl1.RepositoryItems.AddRange(new RepositoryItem[] { riProgressBar, riSpinEdit });
pivotGridControl1.CustomCellEdit += new

winforms-pivot-grid-override-in-place-cell-editor/CS/PivotGridControl_CustomCellEdit/Form1.cs#L18

csharp
// Initializes cell editors for this Pivot Grid control.
    pivotGridControl1.RepositoryItems.AddRange(new RepositoryItem[] { riTextEdit, riProgressBar });
}

winforms-pivotgrid-assign-in-place-editors-to-different-types-of-cells/VB/PivotGridControl_CustomCellEdit/Form1.vb#L23

vb
' Initializes cell editors used to represent values of regular and total cells respectively.
    pivotGridControl1.RepositoryItems.AddRange(New RepositoryItem() {riProgressBar, riSpinEdit})
End Sub

winforms-pivot-grid-override-in-place-cell-editor/VB/PivotGridControl_CustomCellEdit/Form1.vb#L22

vb
' Initializes cell editors for this Pivot Grid control.
    pivotGridControl1.RepositoryItems.AddRange(New RepositoryItem() {riProgressBar, riTextEdit})
End Sub

See Also

Add

RepositoryItemCollection Class

RepositoryItemCollection Members

DevExpress.XtraEditors.Repository Namespace