ConditionAttribute
A class in Alta.Attributes, the global namespace.
Inspector attribute that shows, hides or locks a field depending on a bool member of the same object.
- Listed in Other Alta assemblies
- Inherits or implements
PropertyAttribute - Derived types
NotConditionAttribute
Constructors
| Member | What it is |
|---|---|
ConditionAttribute(string boolean, ReadOnlyMode trueMode = 2, ReadOnlyMode falseMode = 0) | Creates a ConditionAttribute from boolean, trueMode and falseMode. |
Properties
| Member | What it is |
|---|---|
string Boolean { get; private set; } | Name of the bool member to check. |
ReadOnlyMode FalseMode { get; private set; } | How the field is drawn when the bool is false. Default hidden. |
ReadOnlyMode TrueMode { get; private set; } | How the field is drawn when the bool is true. Default editable. |