Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgTemplateValueVariant.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 OdDgTemplateValueVariant : 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 OdDgTemplateValueVariant(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(OdDgTemplateValueVariant 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 OdDgTemplateValueVariant() : this(TG_DbPINVOKE.new_OdDgTemplateValueVariant(), true) {
54 }
55
59 return ret;
60 }
61
65 }
66
67 public bool getBoolValue() {
70 return ret;
71 }
72
73 public void setBoolValue(bool bVal) {
76 }
77
78 public byte getByteValue() {
79// test csout
80 /*SIMPLETYPE*/
83 return ret;
84 }
85
86 public void setByteValue(byte /*SIMPLETYPE*/ uVal) {
87 TG_DbPINVOKE.OdDgTemplateValueVariant_setByteValue(swigCPtr, uVal /*SIMPLETYPE*/);
89 }
90
91 public UInt16 getShortValue() {
92// test csout
93 /*SIMPLETYPE*/
96 return ret;
97 }
98
99 public void setShortValue(UInt16 /*SIMPLETYPE*/ uVal) {
100 TG_DbPINVOKE.OdDgTemplateValueVariant_setShortValue(swigCPtr, uVal /*SIMPLETYPE*/);
102 }
103
104 public double getDoubleValue() {
107 return ret;
108 }
109
110 public void setDoubleValue(double dVal) {
113 }
114
118 return ret;
119 }
120
121 public void setPoint3dValue(OdGePoint3d ptVal) {
124 }
125
129 return ret;
130}
131
132 public void setStringValue(String strVal) {
135 }
136
140 return ret;
141 }
142
146 }
147
149 kNone = 0,
150 kBoolean = 1,
151 kByte = 2,
152 kShort = 3,
153 kDouble = 4,
154 kPoint3d = 5,
155 kColor = 6,
156 kString = 7
157 }
158
159}
160
161}
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdDgTemplateColorValue obj)
OdDgTemplateValueVariant.OdDgTemplateVariantDataType getDataType()
static HandleRef getCPtr(OdDgTemplateValueVariant obj)
virtual void Dispose(bool disposing)
OdDgTemplateValueVariant(IntPtr cPtr, bool cMemoryOwn)
void setColorValue(OdDgTemplateColorValue clrVal)
void setDataType(OdDgTemplateValueVariant.OdDgTemplateVariantDataType uType)
static global::System.Exception Retrieve()
static int OdDgTemplateValueVariant_getDataType(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setDoubleValue(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdDgTemplateValueVariant_setShortValue(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static double OdDgTemplateValueVariant_getDoubleValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setStringValue(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDgTemplateValueVariant_getBoolValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static byte OdDgTemplateValueVariant_getByteValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDgTemplateValueVariant_getPoint3dValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setColorValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDgTemplateValueVariant(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setBoolValue(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static String OdDgTemplateValueVariant_getStringValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setByteValue(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2)
static global::System.IntPtr OdDgTemplateValueVariant_getColorValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setDataType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static UInt16 OdDgTemplateValueVariant_getShortValue(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgTemplateValueVariant_setPoint3dValue(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)