Skip to main content
Version: 4.2

CardActionCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Ordered commands that notify their card about collection and property changes.

public class CardActionCollection : Collection<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​

Instance member CardActionCollection()​

Initializes a new instance of CardActionCollection.

Methods​

Protected member ClearItems()​

Removes all commands and change subscriptions.

Protected member InsertItem(index, item)​

Adds a non-null command not owned by another collection.

ParameterTypeDescription
indexInt32Insertion index.
itemCardActionCommand.

Protected member RemoveItem(index)​

Removes a command and its change subscription.

ParameterTypeDescription
indexInt32Removal index.

Protected member SetItem(index, item)​

Replaces a command and transfers property observation.

ParameterTypeDescription
indexInt32Replacement index.
itemCardActionNew command.