get_item_attribute_value


Description:

public virtual Variant? get_item_attribute_value (int item_index, string attribute, VariantType? expected_type)

Queries the item at position item_index in this for the attribute specified by attribute.

If expected_type is non-null then it specifies the expected type of the attribute. If it is null then any type will be accepted.

If the attribute exists and matches expected_type (or if the expected type is unspecified) then the value is returned.

If the attribute does not exist, or does not match the expected type then null is returned.

Parameters:

this

a MenuModel

item_index

the index of the item

attribute

the attribute to query

expected_type

the expected type of the attribute, or null

Returns:

the value of the attribute




2022 vala-language.org