Class ConstructAction.DefaultBoolean
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.
Inheritance
System.Object
ConstructAction.DefaultBoolean
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class DefaultBoolean
Constructors
| Improve this Doc View SourceDefaultBoolean()
Creates an undefined DefaultBoolean
Declaration
public DefaultBoolean()
DefaultBoolean(Boolean)
Creates a defined DefaultBoolean
Declaration
public DefaultBoolean(bool StartValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | StartValue | start value |
Properties
| Improve this Doc View SourceBoolean
Gets or sets the current value.
Declaration
public bool Boolean { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Operators
| Improve this Doc View SourceImplicit(ConstructAction.DefaultBoolean to Boolean)
Converts to a boolean
Declaration
public static implicit operator bool (ConstructAction.DefaultBoolean db)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructAction.DefaultBoolean | db | convert this |
Returns
| Type | Description |
|---|---|
| System.Boolean |