Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdTfVariant.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdTfVariant : OdVariant {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdTfVariant(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdTfVariant_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdTfVariant obj) {
26 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
27 }
28
29 protected override void Dispose(bool disposing) {
30 lock(this) {
31 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
32 if (swigCMemOwn) {
33 swigCMemOwn = false;
35 }
36 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
37 }
38 base.Dispose(disposing);
39 }
40 }
41
42 public enum Type {
43 kGUID = OdVariant.Type.kNextType,
44 kEmpty,
48 kTuple,
50 }
51
52 public new static OdVariant.TypeFactory typeFactory(int type) {
53 global::System.IntPtr cPtr = GlobalsPINVOKE.OdTfVariant_typeFactory(type);
54 OdVariant.TypeFactory ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdVariant.TypeFactory(cPtr, false);
56 return ret;
57 }
58
59 public static OdTfVariant.Type kVariantArray(UInt16 nDims, UInt32 itemType)
60 {
61 OdTfVariant.Type ret = (OdTfVariant.Type)(GlobalsPINVOKE.OdTfVariant_kVariantArray__SWIG_0(nDims /*SIMPLETYPE*/, itemType /*SIMPLETYPE*/));
63 return ret;
64 }
65
66
67 public static OdTfVariant.Type kVariantArray(UInt16 nDims, OdTfVariant.Type itemType)
68 {
69 OdTfVariant.Type ret = (OdTfVariant.Type)(GlobalsPINVOKE.OdTfVariant_kVariantArray__SWIG_1(nDims /*SIMPLETYPE*/, (int)itemType));
71 return ret;
72 }
73
74
81
82
89
90
97
98
99 public static UInt16 getDimsCount(OdTfVariant.Type type) {
100// test csout
101 /*SIMPLETYPE*/
102 UInt16 ret = GlobalsPINVOKE.OdTfVariant_getDimsCount((int)type);
104 return ret;
105 }
106
112
113 public bool isEmpty() {
114 bool ret = GlobalsPINVOKE.OdTfVariant_isEmpty(swigCPtr);
116 return ret;
117 }
118
124
125 public OdTfVariant() : this(GlobalsPINVOKE.new_OdTfVariant__SWIG_0(), true) {
127 }
128
129 static private global::System.IntPtr SwigConstructOdTfVariant(Object value) {
130IntPtr vvalue = Teigha.Core.Helpers.MarshalVariant(value);
131 try {
133 } finally {
134Teigha.Core.Helpers.FreeVariant(vvalue);
135 }
136 }
137
138 public OdTfVariant(Object value) : this(OdTfVariant.SwigConstructOdTfVariant(value), true) {
140 }
141
145
149
153
157
161
167
168 public OdGUID getGUID() {
169 OdGUID ret = new OdGUID(GlobalsPINVOKE.OdTfVariant_getGUID(swigCPtr), false);
171 return ret;
172 }
173
181
183 global::System.IntPtr cPtr = GlobalsPINVOKE.OdTfVariant_getDbStubPtr(swigCPtr);
184 OdDbStub ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdDbStub(cPtr, false);
186 return ret;
187 }
188
190 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdTfVariant_getRxObjectWeakPtr(swigCPtr),false); /*createInt 3_2*/
191
193 return ret;
194}
195
201
209
215
221
227
233
239
245
250 public Teigha.Core.OdVariant.Type vb_type() { return this.type(); }
251
257
258}
259
260}
static global::System.Exception Retrieve()
static global::System.IntPtr OdTfVariant_setRxObjectWeakPtr(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdTfVariant_getVariantTuple(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr new_OdTfVariant__SWIG_1(IntPtr jarg1)
static global::System.IntPtr OdTfVariant_getVariantArray(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdTfVariant_setDbStubPtr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdTfVariant_empty()
static int OdTfVariant_kVariantArray__SWIG_2(UInt32 jarg1)
static global::System.IntPtr OdTfVariant_setGUID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTfVariant_getItemType(int jarg1)
static global::System.IntPtr OdTfVariant_asVariantArray(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTfVariant_kVariantArray__SWIG_3(int jarg1)
static void delete_OdTfVariant(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdTfVariant_kVariantArray__SWIG_1(UInt16 jarg1, int jarg2)
static global::System.IntPtr OdTfVariant_getGUID(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdTfVariant_asVariantTuple(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdTfVariant_typeFactory(int jarg1)
static UInt16 OdTfVariant_getDimsCount(int jarg1)
static global::System.IntPtr OdTfVariant_setVariantTuple(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdTfVariant_isEmpty(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdTfVariant_getDbStubPtr(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdTfVariant_isVariantArray(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdTfVariant_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTfVariant_kVariantArray__SWIG_0(UInt16 jarg1, UInt32 jarg2)
static global::System.IntPtr OdTfVariant_setVariantArray(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdTfVariant_getRxObjectWeakPtr(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdDbStub obj)
Definition OdDbStub.cs:26
static HandleRef getCPtr(OdGUID obj)
Definition OdGUID.cs:26
static HandleRef getCPtr(OdRxObject obj)
Definition OdRxObject.cs:26
static HandleRef getCPtr(OdTfVariantArray obj)
static OdTfVariant.Type kVariantArray(UInt16 nDims, OdTfVariant.Type itemType)
OdTfVariantArray getVariantTuple()
static HandleRef getCPtr(OdTfVariant obj)
static OdTfVariant.Type kVariantArray(UInt32 itemType)
static OdTfVariant.Type kVariantArray(UInt16 nDims, UInt32 itemType)
override void Dispose(bool disposing)
OdRxObject getRxObjectWeakPtr()
OdTfVariantArray asVariantTuple()
OdTfVariant(OdDbStub value)
Teigha.Core.OdVariant.Type vb_type()
OdTfVariant setDbStubPtr(OdDbStub value)
OdTfVariant setRxObjectWeakPtr(OdRxObject value)
OdTfVariant(IntPtr cPtr, bool cMemoryOwn)
OdTfVariantArray asVariantArray()
OdTfVariant(OdTfVariant value)
OdTfVariant setGUID(OdGUID value)
static UInt16 getDimsCount(OdTfVariant.Type type)
static OdTfVariant.Type getItemType(OdTfVariant.Type type)
OdTfVariant setVariantTuple(OdTfVariantArray value)
static OdTfVariant empty()
OdTfVariant(Object value)
OdTfVariant Assign(OdTfVariant value)
OdTfVariant setVariantArray(OdTfVariant.Type type, OdTfVariantArray value)
static new OdVariant.TypeFactory typeFactory(int type)
OdTfVariant(OdGUID value)
OdTfVariant(OdTfVariant.Type type, OdTfVariantArray value)
static OdTfVariant.Type kVariantArray(OdTfVariant.Type type)
static Teigha.Core.OdVariant.TypeFactory vb_typeFactory(int type)
OdTfVariant(OdTfVariantArray value)
OdTfVariantArray getVariantArray()
OdVariant.Type type()
Definition OdVariant.cs:139