GetParamsByName

IList<Parameter> GetParamsByName(this Element element, string paramName)

Returns all parameters whose display name equals the provided name.

Parameters

  • elementElement

    The element to inspect.

  • paramNamestring

    The parameter display name.

Returns: A list of matching parameters (empty if none).

Example

IList<Parameter> ps = element.GetParamsByName("Comments");