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: 24.2.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
(Inherited from DisposableWrapper)
Public property Boolean  
Public property Char  
Public property Color  
Public property Double  
Public property Float  
Public property Int  
Public property IsDisposed
(Inherited from DisposableWrapper)
Public property Long  
Public property Short  
Public property String  
Public property Type  
Public property Uchar  
Public property Uint  
Public property Ulong  
Public property UnmanagedObject
(Inherited from DisposableWrapper)
Public property Ushort  
Top
Methods
  Name Description
Public method Clone
(Inherited from RXObject)
Public method CompareTo
(Inherited from RXObject)
Public method CopyFrom(RXObject)
(Inherited from RXObject)
Public method CopyFrom(Variant) Copies the contents of the specified object into this object.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(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
(Inherited from DisposableWrapper)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public method GetRXClass
(Inherited from RXObject)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public method QueryX
(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 Returns a string that represents the current object.
(Inherited from Object)
Public method X
(Inherited from RXObject)
Top
See Also

©  Bricsys NV. All rights reserved.