Click or drag to resize

SvgAttributeCollectionGetAttributeT Method (String, T)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the attribute with the specified name.

Namespace:  Svg
Assembly:  imbSCI.Graph (in imbSCI.Graph.dll) Version: 0.3.70.
Syntax
C#
public T GetAttribute<T>(
	string attributeName,
	T defaultValue
)
Request Example View Source

Parameters

attributeName
Type: SystemString
A String containing the name of the attribute.
defaultValue
Type: T
The value to return if a value hasn't already been specified.

Type Parameters

T
The type of the attribute value.

Return Value

Type: T
The attribute value if available; otherwise the default value of T.
See Also