Back to Devexpress

RadioGroupItemCollection.AddRange(RadioGroupItem[]) Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-radiogroupitemcollection-dot-addrange-x28-devexpress-dot-xtraeditors-dot-controls-dot-radiogroupitem-x29.md

latest3.3 KB
Original Source

RadioGroupItemCollection.AddRange(RadioGroupItem[]) Method

Adds an array of items to the collection.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Parameters

NameTypeDescription
itemsRadioGroupItem[]

An array of RadioGroupItem objects representing items for the radio group editor.

|

Remarks

The AddRange method adds an array of items to the current RepositoryItemRadioGroup.Items collection. Each array element represents an object of the RadioGroupItem class and this controls the item’s description, value and index.

See the RadioGroupItemCollection.Add method to add a single item to the collection. To insert an object at a specified position, use the RadioGroupItemCollection.Insert method.

To remove an item from the collection, use the RadioGroupItemCollection.Remove method.

To access individual items in the collection, see the RadioGroupItemCollection.Item index.

Note : To ensure correct functionality, items’ values must be unique within the collection.

See Also

RadioGroupItem

Add(RadioGroupItem)

Item[Int32]

Insert(Int32, RadioGroupItem)

RadioGroupItemCollection Class

RadioGroupItemCollection Members

DevExpress.XtraEditors.Controls Namespace