KanbanColumnCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
A mutable collection of columns that refreshes its owning board when items change.
- C#
- VB.NET
public class KanbanColumnCollection : Collection<KanbanColumn>
Public Class KanbanColumnCollection
Inherits Collection(Of KanbanColumn)
Null items and duplicate item instances are rejected. Item property changes are observed automatically.
Example:
var board = new KanbanBoard();
board.Columns.Add(new KanbanColumn { Text = "Review", Value = "review" });
board.Columns[0].WipLimit = 3; // Refreshes the owning board.
Constructors
KanbanColumnCollection()
Initializes a new instance of KanbanColumnCollection.
Methods
ClearItems()
Removes all items and their change subscriptions.
InsertItem(index, item)
Inserts an item and starts observing its property changes.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Zero-based insertion position. |
| item | KanbanColumn | Non-null item not already in this collection. |
RemoveItem(index)
Removes an item and stops observing it.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Zero-based position to remove. |
SetItem(index, item)
Replaces an item and transfers property-change observation.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Zero-based position to replace. |
| item | KanbanColumn | Non-null replacement item. |