ApprovalStepCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Owns ordered steps and observes their property changes.
- C#
- VB.NET
public class ApprovalStepCollection : Collection<ApprovalStep>
Public Class ApprovalStepCollection
Inherits Collection(Of ApprovalStep)
A step belongs to one collection. Removing it releases ownership.
Example:
trail.Steps.Add(new ApprovalStep { Text = "Account" });
trail.Steps.Add(new ApprovalStep { Text = "Review" });
Constructors
ApprovalStepCollection()
Initializes a new instance of ApprovalStepCollection.
Methods
ClearItems()
Releases all steps and clears the collection.
InsertItem(index, item)
Inserts and observes a step.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Insertion index. |
| item | ApprovalStep | An unowned step. |
RemoveItem(index)
Removes a step and releases ownership.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Removal index. |
SetItem(index, item)
Replaces a step and transfers observation.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Replacement index. |
| item | ApprovalStep | An unowned step. |