Class ConstructAction.DefaultLength
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 keybord 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.
Inheritance
Inherited Members
Namespace: CADability.Actions
Assembly: CADability.dll
Syntax
public class DefaultLength
Constructors
| Improve this Doc View SourceDefaultLength()
Creates an uninitialized DefaultLength object.
Declaration
public DefaultLength()
DefaultLength(ConstructAction.DefaultLength.StartValue)
Creates an uninitialized DefaultLength object with a definition how to initialize upon first usage.
Declaration
public DefaultLength(ConstructAction.DefaultLength.StartValue sw)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructAction.DefaultLength.StartValue | sw | how to initilize |
Fields
| Improve this Doc View SourceLocked
Locked if true. A locked input is considered fixed (see Fixed)
Declaration
public bool Locked
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Properties
| Improve this Doc View SourceLength
Returns the current value
Declaration
public double Length { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Operators
| Improve this Doc View SourceImplicit(ConstructAction.DefaultLength to Double)
Converts to a double
Declaration
public static implicit operator double (ConstructAction.DefaultLength rl)
Parameters
| Type | Name | Description |
|---|---|---|
| ConstructAction.DefaultLength | rl | convert this |
Returns
| Type | Description |
|---|---|
| System.Double | the double value |