has_sub


Description:

[ Version ( since = "2.22" ) ]
public bool has_sub (string id)

Checks whether the element id exists in the SVG document.

Element IDs should look like an URL fragment identifier; for example, pass `foo` (hash `foo`) to get the geometry of the element that has an `id="foo"` attribute.

Parameters:

this

a [[email protected]]

id

An element's id within the SVG, starting with "#" (a single hash character), for example, `layer1`. This notation corresponds to a URL's fragment ID.

Returns:

`TRUE` if id exists in the SVG document, `FALSE` otherwise.




2022 vala-language.org