Class Variable
Last update: 09.03.2026Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the variable( Variable data ). Getting the value(double type) through Value property.
public class Variable : Expression, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IExpression, IVariable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider
Inheritance
object ← ObservableObject ← LinkableBase ← LinkContainer ← Expression ← Variable
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IExpression, IVariable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider
Inherited Members
Expression.g_bSkipUpdate, Expression.m_pExpressionHandler, Expression.m_strValue, Expression.m_dicReferenceObject, Expression.m_lstReferenceObject, Expression.m_linkCollectionReferenceObject, Expression.Initialize(), Expression.UpdateByReferenceObject(object, LinkEventArgs), Expression.AddReferenceObject(UIntPtr), Expression.CheckReferenceObject(), Expression.SetDefaultString(ref string), Expression.ConvertToValue(string), Expression.ParseToValue(char*), Expression.GetNumericValue(), Expression.OnDeserialization(object), Expression.Uninitialize(), Expression.String, LinkContainer.SetModified(), LinkContainer.raise_OnUpdating(object, LinkEventArgs), LinkContainer.raise_OnUpdate(object, LinkEventArgs), LinkContainer.raise_OnDestroying(object, LinkEventArgs), LinkContainer.raise_OnDestroy(object, LinkEventArgs), LinkContainer.raise_OnAdded(object, AddToDocEventArgs), LinkContainer.raise_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.IsSerializableEvent(Delegate), LinkContainer.CustomGetObjectData(SerializationInfo, StreamingContext), LinkContainer.GetSerializedData(SerializationInfo, StreamingContext), LinkContainer.LinkRequestUpdating(object, LinkEventArgs), LinkContainer.LinkRequestUpdate(object, LinkEventArgs), LinkContainer.LinkRequestDestroying(object, LinkEventArgs), LinkContainer.LinkRequestDestroy(object, LinkEventArgs), LinkContainer.LinkAddedToDocument(object, AddToDocEventArgs), LinkContainer.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), LinkContainer.OnLinkReserved(ILink, object, EventArgs), LinkContainer.CanBeDestroy(object), LinkContainer.DisposeManagedResources(), LinkContainer.SetContainer(IOwned, bool), LinkContainer.OnChildUpdated(object, LinkEventArgs), LinkContainer.OnContainerDestroy(object, LinkEventArgs), LinkContainer.OnDeserialization(object), LinkContainer.Verify(VerifiedResult), LinkContainer.GetCopy(object), LinkContainer.Dispose(bool), LinkContainer.ClearChildInfoBeforeDeserialize, LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
Variable(double, bool)
Initializes a new instance of the
public Variable(double dValue, bool bRoundUp)
Parameters
dValue double
The value of Variable(double type).
bRoundUp bool
Determines whether is value without limiting the precision.
Variable(double)
Initializes a new instance of the
public Variable(double dValue)
Parameters
dValue double
The value of Variable(double type). This value will be rounded.
Variable(string)
Initializes a new instance of the
public Variable(string strValue)
Parameters
strValue string
The value of Variable(string type).
Variable()
Initializes a new instance of the
public Variable()
Properties
DontUpdateByReferenceObject
public bool DontUpdateByReferenceObject { set; }
Property Value
bool
IsSimpleValue
Gets the simple value.
public virtual bool IsSimpleValue { get; }
Property Value
bool
PreciseValue
Sets the value without limiting the precision.
public double PreciseValue { set; }
Property Value
double
Value
Gets or sets the value
public virtual double Value { get; set; }
Property Value
double
Methods
Clone()
public virtual object Clone()
Returns
object
ConvertToValue(string)
Convert to value.
protected override bool ConvertToValue(string strValue)
Parameters
strValue string
The string.
Returns
bool
GetFullName()
public virtual string GetFullName()
Returns
string
GetNumericValue()
Get numeric value.
protected override double GetNumericValue()
Returns
double
GetSchema()
This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return nullNothingnullptra null reference (Nothing in Visual Basic) (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the XmlSchemaProviderAttribute to the class.
public virtual XmlSchema GetSchema()
Returns
XmlSchema
GetValue(string)
public static double GetValue(string strValue)
Parameters
strValue string
Returns
double
LinkRequestDestroying(object, LinkEventArgs)
The destroying event occured from the linked object.
protected override void LinkRequestDestroying(object obNotifier, LinkEventArgs arg)
Parameters
obNotifier object
arg LinkEventArgs
The destroy event information.
LinkRequestUpdate(object, LinkEventArgs)
The update event occured from the linked object.
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The update event information.
ParseToValue(char*)
Parse to value.
protected override void ParseToValue(char* wstrValue)
Parameters
wstrValue char*
The string.
ReadXml(XmlReader)
Generates an object from its XML representation.
public virtual void ReadXml(XmlReader reader)
Parameters
reader XmlReader
The XmlReader stream from which the object is deserialized.
SetDefaultString(ref string)
Set default string.
protected override void SetDefaultString(ref string strValue)
Parameters
strValue string
The value holds default string.
SetExpression(string)
Sets the value.
public virtual void SetExpression(string strValue)
Parameters
strValue string
The value.
UpdateByReferenceObject(object, LinkEventArgs)
The update event occured from the reference object.
public override void UpdateByReferenceObject(object obj, LinkEventArgs arg)
Parameters
obj object
The reference object.
arg LinkEventArgs
The update event information.
WriteXml(XmlWriter)
Converts an object into its XML representation.
public virtual void WriteXml(XmlWriter writer)
Parameters
writer XmlWriter
The XmlWriter stream to which the object is serialized.
Operators
implicit operator ExpressionValueVariable(Variable)
Cast operator.
public static implicit operator ExpressionValueVariable(Variable variable)
Parameters
variable Variable
The Variable.
Returns
implicit operator Variable(ExpressionValueVariable)
Cast operator.
public static implicit operator Variable(ExpressionValueVariable expressionValue)
Parameters
expressionValue ExpressionValueVariable
The ExpressionValue.