HasParameter

bool HasParameter(this Element element, string paramName)

Determines whether the element contains a parameter with the given display name (case-sensitive via LookupParameter).

Parameters

  • elementElement

    The element to inspect.

  • paramNamestring

    The parameter display name.

Returns: True if a parameter is found; otherwise false.

Example

if (element.HasParameter("Comments"))
{
TaskDialog.Show("Param", "Has Comments");
}