Show / Hide Table of Contents

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
System.Object
ConstructAction.DefaultLength
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 DefaultLength

Constructors

| Improve this Doc View Source

DefaultLength()

Creates an uninitialized DefaultLength object.

Declaration
public DefaultLength()
| Improve this Doc View Source

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 Source

Locked

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 Source

Length

Returns the current value

Declaration
public double Length { get; set; }
Property Value
Type Description
System.Double

Operators

| Improve this Doc View Source

Implicit(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

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX