Click or drag to resize

PropertyHierarchyGetValueT(PropertyKeyT, T) Method

Gets a property value.

Namespace: Altaxo.Main.Properties
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public T GetValue<T>(
	PropertyKey<T> p,
	T defaultValue
)

Parameters

p  PropertyKeyT
The property key.
defaultValue  T
The default value. This value is returned if the property hierarchy does not contain the property value.

Type Parameters

T
Type of the property value.

Return Value

T
The property value if found in this hierarchy, or the provided default value.

Implements

IReadOnlyPropertyBagGetValueT(PropertyKeyT, T)
See Also