UndoableListT Class

Spotfire 14.3 API Reference
A list of T where all operations on the list are undoable.
Inheritance Hierarchy

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

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 UndoableList<T> : UndoableCollectionNode, 
	IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T

The UndoableListT type exposes the following members.

Properties

  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollectionT.
Public propertyItem
Gets or sets the T at the specified index.
Top
Methods

  NameDescription
Public methodAdd
Adds an item to the ICollectionT.
Public methodAddRange
Adds the elements of the specified collection to the end of this UndoableListT.
Public methodAsReadOnly
Returns a read-only IListT collection containing the elements of this UndoableListT.
Public methodClear
Removes all items from the ICollectionT.
Public methodContains
Determines whether the ICollectionT contains a specific value.
Public methodCopyTo
Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
Public methodExists
Determines whether the List contains elements that match the conditions defined by the specified predicate.
Public methodFind
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire List.
Public methodFindAll
Retrieves all the elements that match the conditions defined by the specified predicate.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of a specific item in the IListT.
Public methodInsert
Inserts an item to the IListT at the specified index.
Public methodInsertRange
Inserts the elements of the specified collection at the specified index in this UndoableListT.
Public methodRemove
Removes the first occurrence of a specific object from the ICollectionT.
Public methodRemoveAll
Removes the all the elements that match the conditions defined by the specified predicate.
Public methodRemoveAt
Removes the IListT item at the specified index.
Public methodRemoveRange
Remove count elements starting at position index. If count is zero, no elements are removed and no event is raised.
Public methodReplaceAll
Replaces the contents of this list with the elements in the specified collection.
Public methodSort
Sorts the elements in this UndoableListT using the default comparer.
Public methodSort(IComparerT)
Sorts the elements in this UndoableListT using the specified comparer.
Public methodSort(ComparisonT)
Sorts the elements in this UndoableListT using the specified System.Comparison.
Public methodSort(Int32, Int32, IComparerT)
Sorts the elements in a range of this UndoableListT using the specified comparer.
Public methodToArray
Copies the elements of the list to a new array.
Public methodToCollection
Returns a new Collection containing the elements of this UndoableListT.
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 a collection.
Explicit interface implementationPrivate propertyICollectionTIsReadOnly
Gets a value indicating whether the ICollectionT is read-only.
Top
Remarks

When the list is modified, it will raise a PropertyChanged event from its owner, using the Name property of the list as argument to the event.
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