SetParameterBool

bool SetParameterBool(this Element element, string paramName, bool value)

Sets a named parameter as a boolean (stored as integer 0/1).

Parameters

  • elementElement

    The element to modify.

  • paramNamestring

    The parameter display name.

  • valuebool

    Boolean value.

Returns: True if set; otherwise false.

Example

element.SetParameterBool("YesNoParam", true);