Click or drag to resize

PropertyHierarchyTryGetValueT(PropertyKeyT, T, IPropertyBag, PropertyBagInformation) Method

Tries to get a specific property value. The bags are search for the property, starting from the topmost bag and iterating to the bag at the bottom.

Namespace: Altaxo.Main.Properties
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public bool TryGetValue<T>(
	PropertyKey<T> p,
	out T value,
	out IPropertyBag bag,
	out PropertyBagInformation bagInfo
)

Parameters

p  PropertyKeyT
The property key.
value  T
On successfull return, this contains the retrieved property value.
bag  IPropertyBag
On successfull return, this contains the property bag from which the property value was retrieved.
bagInfo  PropertyBagInformation
On successfull return, this contains the information about the property bag from which the property value was retrieved.

Type Parameters

T
Type of the property value to search for.

Return Value

Boolean
True if the property value could be successfully retrieved; false otherwise.
See Also