ScaleValue

References
public class ScaleValue : IDisposable
Represents a scale with associated LengthValues and string representations of the scale. This allows for going back and forth from numerical representations of a scale and a string representation without "guessing" at the initial scale.

Constructors

ScaleValue

#Since v6.0
public ScaleValue()
Default constructor

Finalizer

~ScaleValue

#
~ScaleValue()
passively reclaim native allocated ON_ScaleValue*

Properties

LeftToRightScale

#Since v6.0
public double LeftToRightScale { get; }
LeftLengthValue / RightLengthValue

RightToLeftScale

#Since v6.0
public double RightToLeftScale { get; }
RightLengthValue / LeftLengthValue

Methods

Create

#Since v6.0
public static ScaleValue Create(LengthValue left, LengthValue right, ScaleStringFormat format)
Create from 2 length values
left (LengthValue)
right (LengthValue)
format (ScaleValue.ScaleStringFormat)

Create

#Since v6.0
public static ScaleValue Create(string s, StringParserSettings ps)
Create from string
s (string)
ps (StringParserSettings)

Dispose

#Since v6.0
public void Dispose()
actively reclaim native allocated ON_SacleValue*

IsUnset

#Since v6.0
public bool IsUnset()
Test IsUnset

LeftLengthValue

#Since v6.0
public LengthValue LeftLengthValue()
Get the Left LengthValue from Scale

OneToOne

#Since v6.0
public static ScaleValue OneToOne()
Make a new ScaleValue set to OneToOne

RightLengthValue

#Since v6.0
public LengthValue RightLengthValue()
Get the Right LengthValue from Scale