IPaintContextGetValueOrDefaultT Method |
Gets an object stored under a specified key (usually the owner). If the value is not available, the default value of the specified type is returned.
Namespace: Altaxo.GraphAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax T GetValueOrDefault<T>(
Object key
)
Parameters
- key Object
- The key.
Type Parameters
- T
- Type of the value.
Return Value
TThe value, or the default value. An exception will be thrown if the specified key does not exist or a value with another type than the specified type is stored under the key.
See Also