Identifies settings, properties, or methods that should only be valid/enabled when another property or setting has a certain value.
More...
Inherits Attribute.
|
| | EnabledIfAttribute (string propertyName, params object[] propertyValues) |
| | Identifies settings, properties, or methods that are only valid/enabled when another property or setting has a certain value. More...
|
| |
|
|
bool | HideIfDisabled [getset] |
| | Gets or sets if the property should be hidden when disabled.
|
| |
|
bool | Flags [getset] |
| | Gets or sets if the enabling value is individual flags from an enum.
|
| |
|
bool | Invert [getset] |
| | Gets or sets if the value should enable or disable(inverted) the setting.
|
| |
|
string | PropertyName [get] |
| | Name of the property to enable. Must exactly match a name of a property in the current class.
|
| |
|
IComparable[] | PropertyValues [get] |
| | Value(s) the property must have for the item to be valid/enabled. If multiple values are specified, the item is enabled if just one value is equal. If no values are specified, 'true' is the assumed value.
|
| |
|
object[] | Values [get] |
| | Value(s) the property must have for the item to be valid/enabled. If multiple values are specified, the item is enabled if just one value is equal. If no values are specified, 'true' is the assumed value.
|
| |
Identifies settings, properties, or methods that should only be valid/enabled when another property or setting has a certain value.
◆ EnabledIfAttribute()
| OpenTap.EnabledIfAttribute.EnabledIfAttribute |
( |
string |
propertyName, |
|
|
params object[] |
propertyValues |
|
) |
| |
|
inline |
Identifies settings, properties, or methods that are only valid/enabled when another property or setting has a certain value.
- Parameters
-
| propertyName | Name of the property to enable. Must exactly match a name of a property in the current class. |
| propertyValues | Value(s) the property must have for the item to be valid/enabled. If multiple values are specified, the item is enabled if just one value is equal. If no values are specified, 'true' is the assumed value. |
◆ IsEnabled()
| static bool OpenTap.EnabledIfAttribute.IsEnabled |
( |
IMemberData |
property, |
|
|
object |
instance |
|
) |
| |
|
inlinestatic |
Checks whether a given property is enabled according to the EnabledIfAttribute.
- Parameters
-
| instance | Instance that has property. |
| property | Property to be checked for if it is enabled. |
- Returns
- True if property is enabled.