create_with_properties


Description:

[ CCode ( returns_floating_reference = true ) ]
[ Version ( since = "1.20" ) ]
public Element? create_with_properties (string[]? names, Value[]? values)

Create a new element of the type defined by the given elementfactory.

The supplied list of properties, will be passed at object construction.

Parameters:

this

factory to instantiate

names

array of properties names

values

array of associated properties values

n

count of properties

Returns:

new Element or null if the element couldn't be created