Experimental: this API is experimental and might be changed or removed in the future.

IUxmlAttributes.GetPropertyBool

切换到手册
public bool GetPropertyBool (string propertyName, bool defaultValue);

参数

propertyName属性名称。
defaultValue找不到该属性时的默认值。

返回

bool 属性值或默认值(如果未找到)。

描述

Return the value of an attribute as a bool, or the defaultValue if the property is not found.