CardActionCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Ordered commands that notify their card about collection and property changes.
- C#
- VB.NET
public class CardActionCollection : Collection<CardAction>
Public Class CardActionCollection
Inherits Collection(Of CardAction)
Derives from or implements Collection.
Example:
var card = new ActionCard();
card.Actions.Add(new CardAction { Text = "Snooze", Name = "snooze" });
card.Actions.Add(new CardAction { Text = "Run now", Name = "run", Primary = true });
Constructors
CardActionCollection()
Initializes a new instance of CardActionCollection.
Methods
ClearItems()
Removes all commands and change subscriptions.
InsertItem(index, item)
Adds a non-null command not owned by another collection.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Insertion index. |
| item | CardAction | Command. |
RemoveItem(index)
Removes a command and its change subscription.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Removal index. |
SetItem(index, item)
Replaces a command and transfers property observation.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Replacement index. |
| item | CardAction | New command. |