UndoableSetT Class

Spotfire 14.3 API Reference
A set of items where all operations are undoable.
Inheritance Hierarchy

SystemObject
  Node
    UndoableNodeBase
      UndoableNode
        UndoableCollectionNode
          Spotfire.Dxp.Framework.DocumentModelUndoableSetT

Namespace:  Spotfire.Dxp.Framework.DocumentModel
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
[SerializableAttribute]
public sealed class UndoableSet<T> : UndoableCollectionNode, 
	IEnumerable<T>, IEnumerable, ICollection<T>

Type Parameters

T
The type of the items in the set. May be a class that derives from DocumentNode or any other immutable type such as int or string.

The UndoableSetT type exposes the following members.

Properties

  NameDescription
Public propertyCount
Gets the number of items contained in this set.
Public propertyIsReadOnly
Gets a value indicating whether this set is read-only.
Top
Methods

  NameDescription
Public methodAdd
Adds the specified item to this set. If the item already exists, nothing happens.
Public methodClear
Removes all items from this set.
Public methodContains
Determines whether this set contains the specified item.
Public methodCopyTo
Copies the items of this set to the specified Array, starting at the specified index.
Public methodGetEnumerator
Returns an enumerator that iterates through the items in this set.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the specified item from this set, returning true if this set contained the item.
Public methodReplaceAll
Replaces the contents of this instance with the elements in the specified collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through the items in this set.
Top
Remarks

When the set is modified, its owner will raise an event using the PropertyName that the set was constructed with. To construct an instance of UndoableSet, use the corresponding CreateProperty() overload in DocumentNode.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference