Click or drag to resize
DigitalRuneParticleParameterCollectionGetT Method (String, Boolean)
Gets a particle parameter with the specified type and name. (If the type is wrong an exception is thrown.)

Namespace: DigitalRune.Particles
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public IParticleParameter<T> Get<T>(
	string name,
	bool excludeInherited
)

Parameters

name
Type: SystemString
The name of the parameter (e.g. "Color", "Position", etc.).
excludeInherited
Type: SystemBoolean
If set to only parameters of this ParticleParameterCollection are returned. If set to the parent particle systems are also scanned for uniform particle parameters with the specified name.

Type Parameters

T
The type of the parameter value.

Return Value

Type: IParticleParameterT
The particle parameter, or if no particle parameter with the given name was found.
Exceptions
ExceptionCondition
ParticleSystemException A particle parameter with the given name was found, but the parameter type cannot be cast to type T.
See Also