windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcollection-dot-addrange-x28-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-x29.md
Adds an array of repository items to the collection.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public virtual void AddRange(
RepositoryItem[] items
)
Public Overridable Sub AddRange(
items As RepositoryItem()
)
| Name | Type | Description |
|---|---|---|
| items | RepositoryItem[] |
An array of RepositoryItem descendants to be added to the collection.
|
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.
// 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
// Initializes cell editors for this Pivot Grid control.
pivotGridControl1.RepositoryItems.AddRange(new RepositoryItem[] { riTextEdit, riProgressBar });
}
' 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
' Initializes cell editors for this Pivot Grid control.
pivotGridControl1.RepositoryItems.AddRange(New RepositoryItem() {riProgressBar, riTextEdit})
End Sub
See Also
RepositoryItemCollection Class