Class ConstructAction.DefaultBoolean
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
A DefaultBoolean object is usually used in conjunction with a ConstructAction.BooleanInput object (see CADability.Actions.ConstructAction.BooleanInput.defaultBoolean). It specifies a default value for the input field as long as the user didn't specify that input via keybord or mouse. When the point input is locked, the value is saved in the corresponding DefaultBoolean object. DefaultBoolean objects are usually static in a ConstructAction to preserve that value from one instance of the action to the next instance.
public class ConstructAction.DefaultBoolean
- Inheritance
-
ConstructAction.DefaultBoolean
- Inherited Members
Constructors
DefaultBoolean()
Creates an undefined DefaultBoolean
public DefaultBoolean()
DefaultBoolean(bool)
Creates a defined DefaultBoolean
public DefaultBoolean(bool StartValue)
Parameters
StartValueboolstart value
Properties
Boolean
Gets or sets the current value.
public bool Boolean { get; set; }
Property Value
Operators
implicit operator bool(DefaultBoolean)
Converts to a boolean
public static implicit operator bool(ConstructAction.DefaultBoolean db)
Parameters
dbConstructAction.DefaultBooleanconvert this