Click or drag to resize
DigitalRuneParticleParameterCollectionGetT Method (String)
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
)

Parameters

name
Type: SystemString
The name of the parameter (e.g. "Color", "Position", etc.).

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.
Remarks
If the particle parameter is not found in this ParticleParameterCollection, then the parameter collections of any parent particle systems are searched as well (only for uniform parameters).
See Also