Click or drag to resize

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.Graph
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
T GetValueOrDefault<T>(
	Object key
)

Parameters

key  Object
The key.

Type Parameters

T
Type of the value.

Return Value

T
The 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