Click or drag to resize

Properties Class

A container for settings - key/value pairs where keys are strings, and values are arbitrary objects. Instances of this class are thread-safe.
Inheritance Hierarchy
SystemObject
  Altaxo.Main.ServicesProperties

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public sealed class Properties : INotifyPropertyChanged, 
	ICloneable

The Properties type exposes the following members.

Constructors
 NameDescription
Public methodPropertiesInitializes a new instance of the Properties class
Top
Properties
 NameDescription
Public propertyCount 
Public propertyDictionaryEntries 
Public propertyIsDirty Gets/Sets whether this properties container is dirty. IsDirty automatically gets set to true when a property in this container (or a nested container) changes.
Public propertyItem Retrieves a string value from this Properties-container. Using this indexer is equivalent to calling Get(key, string.Empty).
Public propertyKeys Gets the keys that are in use by this properties container.
Public propertyParent Gets the parent property container.
Top
Methods
 NameDescription
Public methodClone Creates a deep clone of this Properties container.
Public methodContains Gets whether this properties instance contains any entry (value, list, or nested container) with the specified key.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGet(String, Properties)Obsolete.
Public methodGetT(String, T) Retrieves a single element from this Properties-container.
Public methodGetT(String, T)Obsolete.
Public methodGetT(String, ArrayList)Obsolete.
Public methodGetT(String, ListT)Obsolete.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetListT Retrieves the list of items stored with the specified key. If no entry with the specified key exists, this method returns an empty list.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberLoad(FileName) 
Public methodStatic memberLoad(XElement) 
Public methodNestedProperties Retrieves a nested property container; creating a new one on demand. Multiple calls to this method will return the same instance (unless the entry at this key is overwritten by one of the Set-methods). Changes performed on the nested container will be persisted together with the parent container.
Public methodRemove Removes the entry (value, list, or nested container) with the specified key.
Public methodSave 
Public methodSave(FileName) 
Public methodSet(String, Properties)Obsolete.
Public methodSetT(String, T) Sets a single element in this Properties-container. The element will be serialized using a TypeConverter if possible, or XAML serializer otherwise.
Public methodSetT(String, T)Obsolete.
Public methodSetT(String, ArrayList)Obsolete.
Public methodSetT(String, ListT)Obsolete.
Public methodSetListT Sets a list of elements in this Properties-container. The elements will be serialized using a TypeConverter if possible, or XAML serializer otherwise.
Public methodSetNestedProperties Attaches the specified properties container as nested properties. This method is intended to be used in conjunction with the IMementoCapable pattern where a new unattached properties container is created and then later attached to a parent container.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventPropertyChanged 
Top
Fields
 NameDescription
Public fieldStatic memberFileVersion Gets the version number of the XML file format.
Top
See Also