Click or drag to resize

UserDefinedUnitEnvironments Class

Collection of unit environments defined by the user. Key is a quantity that is not neccessarily a unit quantity (for instance: unit quanity is 'Length' but quantities can be 'CapSize', 'LineThickness' etc). Value is the user defined unit environment for that quantity.
Inheritance Hierarchy
SystemObject
  Altaxo.Gui.UnitsUserDefinedUnitEnvironments

Namespace: Altaxo.Gui.Units
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class UserDefinedUnitEnvironments : IDictionary<string, UserDefinedUnitEnvironment>, 
	ICollection<KeyValuePair<string, UserDefinedUnitEnvironment>>, IEnumerable<KeyValuePair<string, UserDefinedUnitEnvironment>>, 
	IEnumerable, INotifyCollectionChanged

The UserDefinedUnitEnvironments type exposes the following members.

Constructors
 NameDescription
Public methodUserDefinedUnitEnvironmentsInitializes a new instance of the UserDefinedUnitEnvironments class
Protected methodUserDefinedUnitEnvironments(IXmlDeserializationInfo)Initializes a new instance of the UserDefinedUnitEnvironments class
Top
Properties
 NameDescription
Public propertyCount 
Public propertyIsReadOnly 
Public propertyItem 
Public propertyKeys 
Public propertyValues 
Top
Methods
 NameDescription
Public methodAdd(KeyValuePairString, UserDefinedUnitEnvironment) 
Public methodAdd(String, UserDefinedUnitEnvironment) 
Public methodClear 
Public methodContains 
Public methodContainsKey 
Public methodCopyTo 
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 methodGetEnumerator 
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRemove(KeyValuePairString, UserDefinedUnitEnvironment) 
Public methodRemove(String) 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValue 
Top
Events
 NameDescription
Public eventCollectionChanged 
Top
Fields
 NameDescription
Public fieldStatic memberPropertyKeyDefaultInstance The property key used to store the default instance of this class in the property service.
Top
Extension Methods
 NameDescription
Public Extension MethodAddRangeKeyValuePairString, UserDefinedUnitEnvironment Adds a range of items to a collection.
(Defined by ListExtensions)
Public Extension MethodFillWithKeyValuePairString, UserDefinedUnitEnvironment
(Defined by ListExtensions)
Public Extension MethodFirstOrKeyValuePairString, UserDefinedUnitEnvironment Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodFlattenFromRootToLeavesKeyValuePairString, UserDefinedUnitEnvironment Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions)
Public Extension MethodForEachDoKeyValuePairString, UserDefinedUnitEnvironment Executes an action for each element of the sequence.
(Defined by EnumerableExtensions)
Public Extension MethodHasSingleElementKeyValuePairString, UserDefinedUnitEnvironment Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfKeyValuePairString, UserDefinedUnitEnvironment Gets the index of an item in a enumeration or list.
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstKeyValuePairString, UserDefinedUnitEnvironment Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstKeyValuePairString, UserDefinedUnitEnvironment Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfMaxKeyValuePairString, UserDefinedUnitEnvironmentReturn the index of the element with the maximum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfMinKeyValuePairString, UserDefinedUnitEnvironmentReturn the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereKeyValuePairString, UserDefinedUnitEnvironment Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereKeyValuePairString, UserDefinedUnitEnvironment Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereKeyValuePairString, UserDefinedUnitEnvironment Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereKeyValuePairString, UserDefinedUnitEnvironment Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesOfMinMaxKeyValuePairString, UserDefinedUnitEnvironmentReturn the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIsEmptyKeyValuePairString, UserDefinedUnitEnvironment Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalKeyValuePairString, UserDefinedUnitEnvironment, T2 Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalKeyValuePairString, UserDefinedUnitEnvironment, T2, TResult Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodLastOrKeyValuePairString, UserDefinedUnitEnvironment Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodMaxElementKeyValuePairString, UserDefinedUnitEnvironment, M Gets the element of a IEnumerabe that evaluates by means of a conversion function to the maximal value. This is different from Select(x => conversion(x)).Max() insofar as it not returns the maximum value, but the original element x which converts to the maximum value.
(Defined by EnumerableExtensions)
Public Extension MethodMaxOrDefaultKeyValuePairString, UserDefinedUnitEnvironment, M Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions)
Public Extension MethodSelectCombinationKeyValuePairString, UserDefinedUnitEnvironment Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectCombinationWithRepetitionKeyValuePairString, UserDefinedUnitEnvironment Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectPermutationKeyValuePairString, UserDefinedUnitEnvironment Select a random permutation from a data sequence by returning the provided data in random order. Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationKeyValuePairString, UserDefinedUnitEnvironment Select a random variation, without repetition, from a data sequence by randomly selecting k elements in random order. Implemented using partial Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationWithRepetitionKeyValuePairString, UserDefinedUnitEnvironment Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics)
Public Extension MethodTakeAllButLastKeyValuePairString, UserDefinedUnitEnvironment Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions)
Public Extension MethodThisOrEmptyKeyValuePairString, UserDefinedUnitEnvironment Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetFirstAndLastKeyValuePairString, UserDefinedUnitEnvironment Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetSingleElementKeyValuePairString, UserDefinedUnitEnvironment Try to get the one and only element of the collection.
(Defined by EnumerableExtensions)
Top
See Also