Class ConstructAction.DefaultLength
- Namespace
- CADability.Actions
- Assembly
- CADability.dll
A DefaultLength object is usually used in conjunction with a ConstructAction.LengthInput object (see DefaultLength). It specifies a default value for the input field as long as the user didn't specify that input via keyboard or mouse. When the length input is locked, the value is saved in the corresponding DefaultLength object. DefaultLength objects are usually static in a ConstructAction to preserve that value from one instance of the action to the next instance.
public class ConstructAction.DefaultLength
- Inheritance
-
ConstructAction.DefaultLength
- Inherited Members
Constructors
DefaultLength()
Creates an uninitialized DefaultLength object.
public DefaultLength()
DefaultLength(StartValue)
Creates an uninitialized DefaultLength object with a definition how to initialize upon first usage.
public DefaultLength(ConstructAction.DefaultLength.StartValue sw)
Parameters
swConstructAction.DefaultLength.StartValuehow to initilize
Fields
Locked
Locked if true. A locked input is considered fixed (see Fixed)
public bool Locked
Field Value
Properties
Length
Returns the current value
public double Length { get; set; }
Property Value
Operators
implicit operator double(DefaultLength)
Converts to a double
public static implicit operator double(ConstructAction.DefaultLength rl)
Parameters
rlConstructAction.DefaultLengthconvert this
Returns
- double
the double value