Click or drag to resize

SelectableListNodeList Class

Collection of SelectableListNodes.
Inheritance Hierarchy

Namespace: Altaxo.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class SelectableListNodeList : ObservableCollection<SelectableListNode>

The SelectableListNodeList type exposes the following members.

Constructors
 NameDescription
Public methodSelectableListNodeList Initializes a new instance of the SelectableListNodeList class.
Public methodSelectableListNodeList(Enum) Initialize the list with all possible values of an enumeration. The item given in the argument is marked as selected item. Note: the enumeration must not have the [Flags] attribute!
Public methodSelectableListNodeList(IEnumerableSelectableListNode) Initializes a new instance of the SelectableListNodeList class.
Public methodSelectableListNodeList(Enum, Boolean) Initialize the list with all possible values of an enumeration. The item given in the argument is marked as selected item. Note: the enumeration must not have the [Flags] attribute!
Public methodSelectableListNodeList(String, String) Initializes the collection with a list of names. One of them is the selected item.
Top
Properties
 NameDescription
Public propertyCountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionSelectableListNode)
Public propertyFirstSelectedNode Gets the first selected node, or null if no node is currently selected.
Public propertyFirstSelectedNodeIndexGet the index of the first selected node. Returns -1 if no node is selected.
Public propertyItemGets or sets the element at the specified index.
(Inherited from CollectionSelectableListNode)
Protected propertyItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionSelectableListNode)
Public propertyUniqueSelectedItem Gets/sets exactly one item that is selected. Intended for operation with comboboxes etc., were the list has none or exactly one item that is selected. Note that use of this property is limited to short lists, because the selected item is searched by iteration through the list.
Top
Methods
 NameDescription
Public methodAdd(T)Adds an object to the end of the CollectionT.
(Inherited from CollectionSelectableListNode)
Public methodAddT(SelectableListNode, ActionT) Adds the specified node to the collection, and is also able to add the correspondig document node too.
Public methodAddRangeAdds items to this collection.
Protected methodBlockReentrancyDisallows reentrant attempts to change this collection.
(Inherited from ObservableCollectionSelectableListNode)
Protected methodCheckReentrancyChecks for reentrant attempts to change this collection.
(Inherited from ObservableCollectionSelectableListNode)
Public methodClearRemoves all elements from the CollectionT.
(Inherited from CollectionSelectableListNode)
Public methodClear(Action) Clears this collection, and clears the corresponding document too.
Protected methodClearItemsRemoves all items from the collection.
(Inherited from ObservableCollectionSelectableListNode)
Public methodClearSelectionsAllSets the IsSelected property of each node in the list to false.
Public methodContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionSelectableListNode)
Public methodCopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionSelectableListNode)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExchange Exchange the item at index i with the item at index j.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFindIndex 
Public methodGetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionSelectableListNode)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetSelectedIndices 
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Inherited from CollectionSelectableListNode)
Public methodIndexOfObject 
Public methodInsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionSelectableListNode)
Protected methodInsertItemInserts an item into the collection at the specified index.
(Inherited from ObservableCollectionSelectableListNode)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMoveMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionSelectableListNode)
Protected methodMoveItemMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionSelectableListNode)
Public methodMoveSelectedItemsDown Move the selected items one place down (i.e. to higher index).
Public methodMoveSelectedItemsDown(ActionInt32, Int32) Move the selected items one place down (i.e. to higher index).
Public methodMoveSelectedItemsUp Move the selected items one place up (i.e. to lower index).
Public methodMoveSelectedItemsUp(ActionInt32, Int32) Move the selected items one place up (i.e. to lower index).
Protected methodOnCollectionChangedRaises the CollectionChanged event with the provided arguments.
(Inherited from ObservableCollectionSelectableListNode)
Protected methodOnPropertyChangedRaises the PropertyChanged event with the provided arguments.
(Inherited from ObservableCollectionSelectableListNode)
Public methodRemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionSelectableListNode)
Public methodRemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionSelectableListNode)
Protected methodRemoveItemRemoves the item at the specified index of the collection.
(Inherited from ObservableCollectionSelectableListNode)
Public methodRemoveRange 
Public methodRemoveSelectedItems Remove the selected items from the collection.
Public methodRemoveSelectedItems(ActionInt32, Object) Remove the selected items from the collection.
Protected methodSetItemReplaces the element at the specified index.
(Inherited from ObservableCollectionSelectableListNode)
Public methodSetSelection Sets the selection of all nodes using a function of the node.
Public methodToArray 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventCollectionChangedOccurs when an item is added, removed, changed, moved, or the entire list is refreshed.
(Inherited from ObservableCollectionSelectableListNode)
Protected eventPropertyChangedOccurs when a property value changes.
(Inherited from ObservableCollectionSelectableListNode)
Top
Extension Methods
 NameDescription
Public Extension MethodAddRangeSelectableListNode
(Defined by ListExtensions)
Public Extension MethodFillWithSelectableListNode
(Defined by ListExtensions)
Public Extension MethodFillWithEnumeration Fills a SelectableListNodeList with enumeration values. (For flag enumerations, please use FillWithFlagEnumeration(SelectableListNodeList, Enum)).
(Defined by SelectableListNodeListHelper)
Public Extension MethodFillWithFlagEnumeration Fills the list with possible values from a flag enumeration.
(Defined by SelectableListNodeListHelper)
Public Extension MethodGetFlagEnumValueAsInt32 Gets the selected flag enum value from a SelectableListNodeList. The SelectableListNodeList instance should have been initialized with FillWithFlagEnumeration(SelectableListNodeList, Enum) (the tags of the items must be integers, representing the flag values).
(Defined by SelectableListNodeListHelper)
Top
See Also