Click or drag to resize

GdiPaintContextGetValueOrDefaultT 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.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public 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.

Implements

IPaintContextGetValueOrDefaultT(Object)
See Also