Class LockableSpacing
Variable spacings describe the spacings between a row of bolts,
possibly varying between each bolt
Inheritance
System.Object
LockableSpacing
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)
Assembly: DesignData.SDS2.Model.dll
Syntax
public sealed class LockableSpacing : Lockable
Constructors
LockableSpacing()
Create a variable spacing with no spacings set
Declaration
Properties
AssumedRows
The number of rows of bolts described by this set of spacings
Declaration
public int AssumedRows { get; }
Property Value
Type |
Description |
System.Int32 |
|
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
First
Declaration
public double First { get; }
Property Value
Type |
Description |
System.Double |
|
IsVariable
True is the spacing list is variable, not uniform
Declaration
public bool IsVariable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Item[Int32]
Declaration
public double this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Double |
|
Last
Declaration
public double Last { get; }
Property Value
Type |
Description |
System.Double |
|
Max
Declaration
public double Max { get; }
Property Value
Type |
Description |
System.Double |
|
Min
Declaration
public double Min { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
FromString(String)
Parse spacings from a user input string
Declaration
public void FromString(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
GetEnumerator()
Get the enumerator object
Declaration
public IEnumerator GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
GetIsVariable()
True is the spacing list is variable, not uniform
Declaration
public bool GetIsVariable()
Returns
Type |
Description |
System.Boolean |
|
SetAll(Double)
Set all spacings to this same value, keep the same number of rows of bolts
Declaration
public void SetAll(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Operators
Addition(LockableSpacing, Double)
Declaration
public static LockableSpacing operator +(LockableSpacing lhs, double rhs)
Parameters
Returns
Division(LockableSpacing, Double)
Declaration
public static LockableSpacing operator /(LockableSpacing lhs, double rhs)
Parameters
Returns
Multiply(LockableSpacing, Double)
Declaration
public static LockableSpacing operator *(LockableSpacing lhs, double rhs)
Parameters
Returns
Subtraction(LockableSpacing, Double)
Declaration
public static LockableSpacing operator -(LockableSpacing lhs, double rhs)
Parameters
Returns