UndoableList< T> Class TIBCO Spotfire 7.5 API Reference
A list of T where all operations on the list are undoable.
Inheritance Hierarchy

System. Object
  Spotfire.Dxp.Framework.DocumentModel.Node
    Spotfire.Dxp.Framework.DocumentModel.UndoableNodeBase
      UndoableNode
        UndoableCollectionNode
          Spotfire.Dxp.Framework.DocumentModel.UndoableList<T>

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

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

Type Parameters

T

The UndoableList< T> type exposes the following members.

Methods

  NameDescription
Public methodAdd
Adds an item to the ICollection<T>.
Public methodAddRange
Adds the elements of the specified collection to the end of this UndoableList<T>.
Public methodAsReadOnly
Returns a read-only IList< T> collection containing the elements of this UndoableList<T>.
Public methodClear
Removes all items from the ICollection<T>.
Public methodContains
Determines whether the ICollection< T> contains a specific value.
Public methodCopyTo
Copies the elements of the ICollection< T> 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.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
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.
Protected methodGetService
Override this method to provide services accessible from this node and its descendants. If you can not provide the requested service, you should call base.GetService which relays the request to the owner or to the AnalysisApplication if no owner is set.
(Inherited from Node.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Determines the index of a specific item in the IList<T>.
Public methodInsert
Inserts an item to the IList< T> at the specified index.
Public methodInsertRange
Inserts the elements of the specified collection at the specified index in this UndoableList<T>.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the first occurrence of a specific object from the ICollection<T>.
Public methodRemoveAll
Removes the all the elements that match the conditions defined by the specified predicate.
Public methodRemoveAt
Removes the IList< T> 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 UndoableList< T> using the default comparer.
Public methodSort(IComparer<T>)
Sorts the elements in this UndoableList< T> using the specified comparer.
Public methodSort(Comparison<T>)
Sorts the elements in this UndoableList< T> using the specified System.Comparison.
Public methodSort(Int32, Int32, IComparer<T>)
Sorts the elements in a range of this UndoableList< T> 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 UndoableList<T>.
Top
Properties

  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection<T>.
Public propertyItem
Gets or sets the T at the specified index.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implementationPrivate methodIEnumerable.GetEnumerator
Returns an enumerator that iterates through a collection.
Explicit interface implementationPrivate methodIServiceProvider.GetService
Implements IServiceProvider.
(Inherited from Node.)
Explicit interface implementationPrivate propertyICollection<T>.IsReadOnly
Gets a value indicating whether the ICollection< T> 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: 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference