get_attribute
Description:
[ Version ( since = "2.34" ) ]
public bool get_attribute (string attribute, string format_string, ...)
public bool get_attribute (string attribute, string format_string, ...)
Queries the named attribute
on this.
If the attribute exists and matches the VariantType corresponding to
format_string
then format_string
is used to deconstruct the value into the positional parameters and
true is returned.
If the attribute does not exist, or it does exist but has the wrong type, then the positional parameters are ignored and false is returned.
Parameters:
this |
a MenuItem |
attribute |
the attribute name to query |
format_string |
a Variant format string |
... |
positional parameters, as per |
Returns:
true if the named attribute was found with the expected type |