
## toggle_attribute {#str}

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName.
If force is false, removes qualifiedName.


### Returns 


Returns true if qualifiedName is now present; otherwise false.


```python
def toggle_attribute(self, qualified_name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| qualified_name | str | The attribute QualifiedName. |


## toggle_attribute {#str-bool}

If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName.
If force is false, removes qualifiedName.


### Returns 


Returns true if qualifiedName is now present; otherwise false.


```python
def toggle_attribute(self, qualified_name, force):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| qualified_name | str | The attribute QualifiedName. |
| force | bool | The force option to toggle attribute. |



### See Also
* module [`aspose.html.dom.svg`](../../)
* class [`SVGComponentTransferFunctionElement`](/html/python-net/aspose.html.dom.svg/svgcomponenttransferfunctionelement)
