Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdDgXMLNode.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 OdDgXMLNode : 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 OdDgXMLNode(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(OdDgXMLNode obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
31 ~OdDgXMLNode() {
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 OdDgXMLNode() : this(TG_DbPINVOKE.new_OdDgXMLNode__SWIG_0(), true) {
54 }
55
56 public OdDgXMLNode(OdDgXMLNode obj) : this(TG_DbPINVOKE.new_OdDgXMLNode__SWIG_1(OdDgXMLNode.getCPtr(obj)), true) {
58 }
59
60 public OdDgXMLNode(String strNodeName) : this(TG_DbPINVOKE.new_OdDgXMLNode__SWIG_2(strNodeName), true) {
62 }
63
69
70 public String getName() {
71 string ret = TG_DbPINVOKE.OdDgXMLNode_getName(swigCPtr);
73 return ret;
74}
75
80
81 public UInt32 getPropertiesCount() {
82// test csout
83 /*SIMPLETYPE*/
84 UInt32 ret = TG_DbPINVOKE.OdDgXMLNode_getPropertiesCount(swigCPtr);
86 return ret;
87 }
88
89 public OdDgXMLProperty getProperty(UInt32 uPropIndex) {
90 OdDgXMLProperty ret = new OdDgXMLProperty(TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_0(swigCPtr, uPropIndex /*SIMPLETYPE*/), false);
92 return ret;
93 }
94
95 public bool getProperty(String strPropName, OdDgXMLProperty propValue) {
96 bool ret = TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_1(swigCPtr, strPropName, OdDgXMLProperty.getCPtr(propValue));
98 return ret;
99 }
100
101 public bool getProperty(String strPropName, OdDgXMLProperty propValue, bool bRemoveIt) {
102 bool ret = TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_2(swigCPtr, strPropName, OdDgXMLProperty.getCPtr(propValue), bRemoveIt);
104 return ret;
105 }
106
107 public bool setProperty(UInt32 uPropIndex, OdDgXMLProperty propValue) {
108 bool ret = TG_DbPINVOKE.OdDgXMLNode_setProperty__SWIG_0(swigCPtr, uPropIndex /*SIMPLETYPE*/, OdDgXMLProperty.getCPtr(propValue));
110 return ret;
111 }
112
113 public bool setProperty(OdDgXMLProperty propValue) {
116 return ret;
117 }
118
119 public void addProperty(OdDgXMLProperty propValue, Int32 insertBefore) {
120 TG_DbPINVOKE.OdDgXMLNode_addProperty__SWIG_0(swigCPtr, OdDgXMLProperty.getCPtr(propValue), insertBefore /*SIMPLETYPE*/);
122 }
123
128
129 public void addTextNode(String strName, String strValue) {
130 TG_DbPINVOKE.OdDgXMLNode_addTextNode__SWIG_0(swigCPtr, strName, strValue);
132 }
133
138
139 public bool deleteProperty(UInt32 uPropIndex) {
140 bool ret = TG_DbPINVOKE.OdDgXMLNode_deleteProperty__SWIG_0(swigCPtr, uPropIndex /*SIMPLETYPE*/);
142 return ret;
143 }
144
145 public bool deleteProperty(String strPropName) {
146 bool ret = TG_DbPINVOKE.OdDgXMLNode_deleteProperty__SWIG_1(swigCPtr, strPropName);
148 return ret;
149 }
150
151 public bool hasProperty(String strPropName) {
152 bool ret = TG_DbPINVOKE.OdDgXMLNode_hasProperty(swigCPtr, strPropName);
154 return ret;
155 }
156
161
162 public OdDgXMLProperty getProperty(String strPropName, String strDefaultValue) {
163 OdDgXMLProperty ret = new OdDgXMLProperty(TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_4(swigCPtr, strPropName, strDefaultValue), true);
165 return ret;
166 }
167
168 public OdDgXMLProperty getProperty(String strPropName, String strDefaultValue, bool bRemoveIt) {
169 OdDgXMLProperty ret = new OdDgXMLProperty(TG_DbPINVOKE.OdDgXMLNode_getProperty__SWIG_5(swigCPtr, strPropName, strDefaultValue, bRemoveIt), true);
171 return ret;
172 }
173
174 public void setProperty(OdDgXMLProperty propValue, String strDefaultValue) {
175 TG_DbPINVOKE.OdDgXMLNode_setProperty__SWIG_2(swigCPtr, OdDgXMLProperty.getCPtr(propValue), strDefaultValue);
177 }
178
183
184 public bool hasText() {
185 bool ret = TG_DbPINVOKE.OdDgXMLNode_hasText(swigCPtr);
187 return ret;
188 }
189
190 public String getText() {
191 string ret = TG_DbPINVOKE.OdDgXMLNode_getText(swigCPtr);
193 return ret;
194}
195
200
201}
202
203}
bool hasProperty(String strPropName)
void addTextNode(String strName, OdDgXMLProperty propValue)
static HandleRef getCPtr(OdDgXMLNode obj)
void setText(String strText)
OdDgXMLProperty getProperty(UInt32 uPropIndex)
OdDgXMLNode Assign(OdDgXMLNode obj)
bool getProperty(String strPropName, OdDgXMLProperty propValue, bool bRemoveIt)
OdDgXMLProperty getProperty(String strPropName, String strDefaultValue)
OdDgXMLNode(OdDgXMLNode obj)
virtual void Dispose(bool disposing)
void addProperty(OdDgXMLProperty propValue)
bool getProperty(String strPropName, OdDgXMLProperty propValue)
void setProperty(OdDgXMLProperty propValue, String strDefaultValue)
void setName(String strName)
OdDgXMLNode(IntPtr cPtr, bool cMemoryOwn)
OdDgXMLNode(String strNodeName)
OdDgXMLProperty getProperty(String strPropName, String strDefaultValue, bool bRemoveIt)
bool deleteProperty(UInt32 uPropIndex)
bool deleteProperty(String strPropName)
UInt32 getPropertiesCount()
void addTextNode(String strName, String strValue)
void mergeXMLNode(OdDgXMLProperty propValue)
bool setProperty(OdDgXMLProperty propValue)
void addProperty(OdDgXMLProperty propValue, Int32 insertBefore)
bool setProperty(UInt32 uPropIndex, OdDgXMLProperty propValue)
static HandleRef getCPtr(OdDgXMLProperty obj)
static global::System.Exception Retrieve()
static bool OdDgXMLNode_hasProperty(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static global::System.IntPtr OdDgXMLNode_getProperty__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3, bool jarg4)
static UInt32 OdDgXMLNode_getPropertiesCount(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgXMLNode_addTextNode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdDgXMLNode_setProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDgXMLNode(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgXMLNode_setProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgXMLNode_setText(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDgXMLNode_setName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdDgXMLNode_getProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdDgXMLNode_addProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, Int32 jarg3)
static void OdDgXMLNode_clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgXMLNode_setProperty__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static void OdDgXMLNode_addProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgXMLNode_getProperty__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4)
static void OdDgXMLNode_mergeXMLNode(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDgXMLNode_deleteProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static String OdDgXMLNode_getName(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDgXMLNode_getText(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDgXMLNode_addTextNode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static global::System.IntPtr OdDgXMLNode_getProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdDgXMLNode_hasText(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDgXMLNode_deleteProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static global::System.IntPtr OdDgXMLNode_getProperty__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3)
static global::System.IntPtr OdDgXMLNode_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)