Click or drag to resize

IReadOnlyPropertyBagGetValueT(PropertyKeyT, T) Method

Gets the value of a property. If the property is not found in the bag, the provided default value is returned.

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

Parameters

p  PropertyKeyT
The property key.
defaultValue  T
Default value that is returned if no property value is found in the bag.

Type Parameters

T
Type of the property value.

Return Value

T
The property.
See Also