Click or drag to resize

SingleSelectableListNodeList Class

A list of selectable items. It is ensured, that either none or maximal one of the items is selected. If one item is selected, the other item that was selected before will be deselected.
Inheritance Hierarchy

Namespace: Altaxo.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class SingleSelectableListNodeList : ObservableCollection<SelectableListNodeWithParent>, 
	SelectableListNodeWithParentIParent

The SingleSelectableListNodeList type exposes the following members.

Constructors
 NameDescription
Public methodSingleSelectableListNodeList Initializes a new instance of the SelectableListNodeList class.
Public methodSingleSelectableListNodeList(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 methodSingleSelectableListNodeList(IEnumerableSelectableListNodeWithParent) Initializes a new instance of the SelectableListNodeList class.
Public methodSingleSelectableListNodeList(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 methodSingleSelectableListNodeList(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 CollectionSelectableListNodeWithParent)
Public propertyItemGets or sets the element at the specified index.
(Inherited from CollectionSelectableListNodeWithParent)
Protected propertyItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Public propertySelectedItem 
Public propertySelectedValue Gets or sets the selected value. It is not recommended to bind the SelectedValue property of the Gui element to this; better bind the SelectedItem property of the Gui element to SelectedItem.
Top
Methods
 NameDescription
Public methodAddAdds an object to the end of the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Protected methodBlockReentrancyDisallows reentrant attempts to change this collection.
(Inherited from ObservableCollectionSelectableListNodeWithParent)
Protected methodCheckReentrancyChecks for reentrant attempts to change this collection.
(Inherited from ObservableCollectionSelectableListNodeWithParent)
Public methodClearRemoves all elements from the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Protected methodClearItems
(Overrides ObservableCollectionTClearItems)
Public methodContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Public methodCopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionSelectableListNodeWithParent)
Public methodEhChild_IsSelectedChanged 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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 methodGetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
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 CollectionSelectableListNodeWithParent)
Public methodInsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionSelectableListNodeWithParent)
Protected methodInsertItem
(Overrides ObservableCollectionTInsertItem(Int32, T))
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 ObservableCollectionSelectableListNodeWithParent)
Protected methodMoveItemMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionSelectableListNodeWithParent)
Protected methodOnCollectionChangedRaises the CollectionChanged event with the provided arguments.
(Inherited from ObservableCollectionSelectableListNodeWithParent)
Protected methodOnPropertyChangedRaises the PropertyChanged event with the provided arguments.
(Inherited from ObservableCollectionSelectableListNodeWithParent)
Public methodRemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Public methodRemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionSelectableListNodeWithParent)
Protected methodRemoveItem
(Overrides ObservableCollectionTRemoveItem(Int32))
Protected methodSetItem
(Overrides ObservableCollectionTSetItem(Int32, T))
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 ObservableCollectionSelectableListNodeWithParent)
Protected eventPropertyChangedOccurs when a property value changes.
(Inherited from ObservableCollectionSelectableListNodeWithParent)
Top
Extension Methods
See Also

Reference

Altaxo.Collections Namespace
[!:System.Collections.ObjectModel.ObservableCollection<Altaxo.Collections.SelectableListNodeWithParent>]