Skip to main content
Version: 3.5

PanelCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Contains a collection of AccordionPanel objects.

public class PanelCollection : IList, ICollection, IEnumerable, IList<AccordionPanel>, ICollection<AccordionPanel>, IEnumerable<AccordionPanel>

Properties

Instance memberCount

Int32: Returns the number of panels in the collection.

Instance memberItem(index)

AccordionPanel: Returns or sets a AccordionPanel in the collection at the specified index.

Throws:

Instance memberItem(name)

AccordionPanel: Returns the AccordionPanel with the specified key from the collection.

Methods

Instance memberAdd(panel)

Adds a AccordionPanel to the collection.

ParameterTypeDescription
panelAccordionPanelThe AccordionPanel to add.

Throws:

Instance memberAdd(text)

Creates a AccordionPanel with the specified text, and adds it to the collection.

ParameterTypeDescription
textStringThe text to display on the panel.

Instance memberAdd(key, text)

Creates a AccordionPanel with the specified key and text and adds it to the collection.

ParameterTypeDescription
keyStringThe name of the AccordionPanel.
textStringThe text to display on the title of AccordionPanel.

Instance memberAdd(key, text, imageIndex)

Creates a AccordionPanel with the specified key, text, and image, and adds it to the collection.

ParameterTypeDescription
keyStringThe name of the AccordionPanel.
textStringThe text to display on the AccordionPanel.
imageIndexInt32The index of the image to display on the title of the AccordionPanel.

Instance memberAdd(key, text, imageKey)

Creates a AccordionPanel with the specified key, text, and image, and adds it to the collection.

ParameterTypeDescription
keyStringThe name of the AccordionPanel.
textStringThe text to display on the AccordionPanel.
imageKeyStringThe key of the image to display on the title of the AccordionPanel.

Instance memberAddRange(panels)

Adds a set of AccordionPanel panels to the collection.

ParameterTypeDescription
panelsAccordionPanel[]An array of type AccordionPanel that contains the panels to add.

Throws:

Instance memberClear()

Removes all the AccordionPanel panels from the collection.

Instance memberClear(dispose)

Removes and disposes all AccordionPanel panels from the collection.

ParameterTypeDescription
disposeBooleanIndicates whether to dispose the AccordionPanel panels removed from the collection.

Instance memberContains(panel)

Determines whether a specified AccordionPanel is in the collection.

ParameterTypeDescription
panelAccordionPanelThe AccordionPanel to locate in the collection.

Returns: Boolean. true if the specified AccordionPanel is in the collection; otherwise, false.

Throws:

Instance memberContainsKey(key)

Determines whether the collection contains a AccordionPanel with the specified key.

ParameterTypeDescription
keyStringThe name of the AccordionPanel to search for.

Returns: Boolean. true to indicate a AccordionPanel with the specified key was found in the collection; otherwise, false.

Instance memberCopyTo(array, index)

Copies the AccordionPanel panels in the collection to the specified array, starting at the specified index.

ParameterTypeDescription
arrayAccordionPanel[]The one-dimensional array that is the destination of the AccordionPanel panels copied from the collection. The array must have zero-based indexing.
indexInt32The zero-based index in the array at which copying begins.

Throws:

Instance memberIndexOf(panel)

Returns the index of the AccordionPanel in the collection.

ParameterTypeDescription
panelAccordionPanelThe AccordionPanel to locate in the collection.

Returns: Int32. The zero-based index of the panel; -1 if it cannot be found.

Throws:

Instance memberIndexOfKey(key)

Returns the index of the first occurrence of the AccordionPanel with the specified key.

ParameterTypeDescription
keyStringThe name of the AccordionPanel to find in the collection.

Returns: Int32. The zero-based index of the first occurrence of a AccordionPanel with the specified key, if found; otherwise, -1.

Instance memberInsert(index, panel)

Inserts an existing AccordionPanel into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the AccordionPanel is inserted.
panelAccordionPanelThe AccordionPanel to insert in the collection.

Instance memberInsert(index, text)

Creates a new AccordionPanel with the specified text and inserts it into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the AccordionPanel is inserted.
textStringThe text to display in the AccordionPanel.

Instance memberInsert(index, key, text)

Creates a new AccordionPanel with the specified key and text, and inserts it into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the AccordionPanel is inserted.
keyStringThe name of the AccordionPanel.
textStringThe text to display on the AccordionPanel.

Instance memberInsert(index, key, text, imageIndex)

Creates a new AccordionPanel with the specified key, text, and image, and inserts it into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the AccordionPanel is inserted
keyStringThe name of the AccordionPanel.
textStringThe text to display on the AccordionPanel.
imageIndexInt32The zero-based index of the image to display on the AccordionPanel.

Instance memberInsert(index, key, text, imageKey)

Creates a AccordionPanel with the specified key, text, and image, and inserts it into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the AccordionPanel is inserted.
keyStringThe name of the AccordionPanel.
textStringThe text to display on the AccordionPanel.
imageKeyStringThe key of the image to display on the AccordionPanel.

Instance memberRemove(panel)

Removes the AccordionPanel from the collection.

ParameterTypeDescription
panelAccordionPanelThe AccordionPanel to remove.

Throws:

Instance memberRemoveAt(index)

Removes the AccordionPanel at the specified index from the collection.

ParameterTypeDescription
indexInt32The zero-based index of the AccordionPanel to remove.

Instance memberRemoveByKey(key)

Removes the AccordionPanel with the specified key from the collection.

ParameterTypeDescription
keyStringThe name of the AccordionPanel to remove.