Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgExpressionConstValueVariant.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.TG {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDgExpressionConstValueVariant : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDgExpressionConstValueVariant(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDgExpressionConstValueVariant obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
52 public OdDgExpressionConstValueVariant() : this(TG_DbPINVOKE.new_OdDgExpressionConstValueVariant__SWIG_0(), true) {
54 }
55
56 public OdDgExpressionConstValueVariant(Int32 /*SIMPLETYPE*/ iValue) : this(TG_DbPINVOKE.new_OdDgExpressionConstValueVariant__SWIG_1(iValue /*SIMPLETYPE*/), true) {
58 }
59
60 public OdDgExpressionConstValueVariant(OdDgExpressionConstValueVariant.OdDgExpressionConstValueVariantType uValueType, double dValue) : this(TG_DbPINVOKE.new_OdDgExpressionConstValueVariant__SWIG_2((int)uValueType, dValue), true) {
62 }
63
67 return ret;
68 }
69
70 public Int32 getInt32Value() {
71// test csout
72 /*SIMPLETYPE*/
75 return ret;
76 }
77
78 public void setInt32Value(Int32 /*SIMPLETYPE*/ iValue) {
79 TG_DbPINVOKE.OdDgExpressionConstValueVariant_setInt32Value(swigCPtr, iValue /*SIMPLETYPE*/);
81 }
82
83 public double getDoubleValue() {
86 return ret;
87 }
88
90 TG_DbPINVOKE.OdDgExpressionConstValueVariant_setDoubleValue(swigCPtr, (int)uValueType, dValue);
92 }
93
97 return ret;
98}
99
100 public void setStringValue(String strValue) {
103 }
104
106 kNumeric = 5,
107 kDistance = 6,
108 kAngled = 7,
109 kInt32 = 8,
110 kArea = 0x1e,
111 kString = 0x21
112 }
113
114}
115
116}
OdDgExpressionConstValueVariant(OdDgExpressionConstValueVariant.OdDgExpressionConstValueVariantType uValueType, double dValue)
void setDoubleValue(OdDgExpressionConstValueVariant.OdDgExpressionConstValueVariantType uValueType, double dValue)
OdDgExpressionConstValueVariant.OdDgExpressionConstValueVariantType getDataType()
static HandleRef getCPtr(OdDgExpressionConstValueVariant obj)
static global::System.Exception Retrieve()
static int OdDgExpressionConstValueVariant_getDataType(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDgExpressionConstValueVariant_getStringValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgExpressionConstValueVariant_setStringValue(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static double OdDgExpressionConstValueVariant_getDoubleValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgExpressionConstValueVariant_setDoubleValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3)
static void delete_OdDgExpressionConstValueVariant(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgExpressionConstValueVariant_setInt32Value(global::System.Runtime.InteropServices.HandleRef jarg1, Int32 jarg2)
static Int32 OdDgExpressionConstValueVariant_getInt32Value(global::System.Runtime.InteropServices.HandleRef jarg1)