Variant Class

This class is used as the basis for the generic data storage used for procedural material definitions.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.RuntimeRXObject
        Teigha.GraphicsInterfaceVariant

Namespace: Teigha.GraphicsInterface
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 26.9.0.0
Syntax
public sealed class Variant : RXObject

The Variant type exposes the following members.

Constructors
  Name Description
Public method Variant Default constructor for the Variant class. Constructs a variant of undefined type without a value.
Public method Variant(Boolean) Constructor for the Variant class. Constructs a variant with the specified value of the bool type.
Public method Variant(Color) Constructor for the Variant class. Constructs a variant with the specified color value.
Public method Variant(Double) Constructor for the Variant class. Constructs a variant with the specified value of the double type.
Public method Variant(Int32) Constructor for the Variant class. Constructs a variant with the specified value of the long integer type.
Public method Variant(String) Constructor for the Variant class. Constructs a variant with the specified string value.
Top
Properties
  Name Description
Public property AutoDelete Property that indicates whether the object should be automatically deleted by the Garbage Collector.
(Inherited from DisposableWrapper)
Public property Boolean Property that represents current value if the variant type is Boolean.
Public property Char Property that represents current value if the variant type is char.
Public property Color Property that represents current value if the variant type is color.
Public property Double Property that represents current value if the variant type is double.
Public property Float Property that represents current value if the variant type is float.
Public property Int Property that represents current value if the variant type is integer.
Public property IsDisposed Property that indicates whether pointer to native code unmanaged object == IntPtr::Zero.
(Inherited from DisposableWrapper)
Public property Long Property that represents current value if the variant type is long.
Public property Short Property that represents current value if the variant type is short.
Public property String Property that represents current value if the variant type is string.
Public property Type Property that represents type of a current value.
Public property Uchar Property that represents current value if the variant type is unsigned char.
Public property Uint Property that represents current value if the variant type is unsigned integer.
Public property Ulong Property that represents current value if the variant type is unsigned long.
Public property UnmanagedObject Property that represents a pointer to an unmanaged object.
(Inherited from DisposableWrapper)
Public property Ushort Property that represents current value if the variant type is unsigned short.
Top
Methods
  Name Description
Public method Clone Creates a *clone* of this object, and returns a pointer to the *clone*.
(Inherited from RXObject)
Public method CompareTo Allows classes to compare class objects.
(Inherited from RXObject)
Public method CopyFrom(RXObject) Copies the contents of the specified object into this object.
(Inherited from RXObject)
Public method CopyFrom(Variant) Copies the contents of the specified object into this object.
Public method CreateObjRef
(Inherited from MarshalByRefObject)
Public method DeleteElem If the variant's type is VariantType.Table, deletes the element with the specified string key from the table. For other types, the method is invalid.
Public method Dispose
(Inherited from DisposableWrapper)
Public method ElemAt If the variant's type is kTable, gets the key and OdGiVariant value from the table using the specified index. For other types, the method is invalid.
Public method ElemCount If the variant's type is Table, returns the number of the table's elements. For other types, the method is invalid.
Public method Equals Checks objects for equality.
(Overrides DisposableWrapperEquals(Object))
Public method get_Elem(String) If the variant's type is Table, gets the Variant value from the table using the specified key. For other types, the method is invalid.
Public method get_Elem(String, Variant) If the variant's type is Table, gets the variant value from the table using the specified key. For other types, the method is invalid.
Public method GetHashCode Retrieves the object hash code.
(Inherited from DisposableWrapper)
Public method GetLifetimeService
(Inherited from MarshalByRefObject)
Public method GetMetaObject
(Inherited from RXObject)
Public method GetRXClass Gets a class describing instance dynamically associated with this object as the OdRxClass object.
(Inherited from RXObject)
Public method GetType
(Inherited from Object)
Public method InitializeLifetimeService
(Inherited from MarshalByRefObject)
Public method QueryX Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class.
(Inherited from RXObject)
Public method set_Elem If the variant's type is Table, sets the variant value from the table using the specified key. For other types, the method is invalid. If a key is not found, a new table with the specified key is created.
Public method ToString
(Inherited from Object)
Public method X Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot.
(Inherited from RXObject)
Top
See Also

©  Bricsys NV. All rights reserved.