Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdTfProperty.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 OdTfProperty : OdRxObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdTfProperty(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdTfProperty_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdTfProperty 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 static OdTfProperty cast(OdRxObject pObj) {// OdSmartPtr<OdTfProperty>
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdTfProperty ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdTfProperty)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfProperty),ptr, true));
51 ret = (OdTfProperty)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfProperty),ptr, false);
52 }
53 else
54 {
55 ret = (OdTfProperty)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfProperty),ptr, true);
56 }
57
59 return ret;
60}
61
62 public new static OdRxClass desc() {
63 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdTfProperty_desc(),false); /*createInt 3_2*/
64
66 return ret;
67}
68
69 public override OdRxClass isA() {
70 OdRxClass ret = (OdRxClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxClass),GlobalsPINVOKE.OdTfProperty_isA(swigCPtr),false); /*createInt 3_2*/
71
73 return ret;
74}
75
76 public override OdRxObject queryX(OdRxClass protocolClass) {
77 OdRxObject ret = (OdRxObject)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxObject),GlobalsPINVOKE.OdTfProperty_queryX(swigCPtr, OdRxClass.getCPtr(protocolClass)),false); /*createInt 3_2*/
78
80 return ret;
81}
82
83 public static OdTfProperty createObject() {// OdSmartPtr<OdTfProperty>
84 MemoryManager mMan = MemoryManager.GetMemoryManager();
85 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
87
88 OdTfProperty ret = null;
89 if (null != mTrans)
90 {
91 mTrans.AddObject((OdTfProperty)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfProperty),ptr, true));
92 ret = (OdTfProperty)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfProperty),ptr, false);
93 }
94 else
95 {
96 ret = (OdTfProperty)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfProperty),ptr, true);
97 }
98
100 return ret;
101}
102
103 public virtual OdTfClass owner() {
104 OdTfClass ret = (OdTfClass)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfClass),GlobalsPINVOKE.OdTfProperty_owner(swigCPtr),false); /*createInt 3_2*/
105
107 return ret;
108}
109
110 public virtual OdTfVariant.Type type()
111 {
114 return ret;
115 }
116
117
118 public virtual String name() {
119 string ret = GlobalsPINVOKE.OdTfProperty_name(swigCPtr);
121 return ret;
122}
123
124 public virtual OdTfAttributesContainer attributes() {// OdTfAttributesContainerPtr
125 MemoryManager mMan = MemoryManager.GetMemoryManager();
126 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
127 IntPtr ptr = GlobalsPINVOKE.OdTfProperty_attributes(swigCPtr);
128
129 OdTfAttributesContainer ret = null;
130 if (null != mTrans)
131 {
132 mTrans.AddObject((OdTfAttributesContainer)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfAttributesContainer),ptr, true));
133 ret = (OdTfAttributesContainer)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfAttributesContainer),ptr, false);
134 }
135 else
136 {
137 ret = (OdTfAttributesContainer)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdTfAttributesContainer),ptr, true);
138 }
139
141 return ret;
142}
143
144 public virtual OdTfVariant defaultItemValue() {
147 return ret;
148 }
149
150 public virtual OdResult getValue(OdTfObject pObject, OdTfVariant value) {
153 return ret;
154 }
155
156 public virtual OdResult setValue(OdTfObject pObject, OdTfVariant value) {
159 return ret;
160 }
161
162 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
163 string ret = GlobalsPINVOKE.OdTfProperty_getRealClassName(ptr /*SIMPLETYPE*/);
165 return ret;
166 }
167
172 public virtual Teigha.Core.OdTfVariant.Type vb_type() { return this.type(); }
173
178 public virtual string vb_name() { return this.name(); }
179
180}
181
182}
static global::System.Exception Retrieve()
static IntPtr OdTfProperty_isA(HandleRef jarg1)
static void delete_OdTfProperty(HandleRef jarg1)
static string OdTfProperty_getRealClassName(IntPtr jarg1)
static global::System.IntPtr OdTfProperty_defaultItemValue(HandleRef jarg1)
static IntPtr OdTfProperty_cast(HandleRef jarg1)
static IntPtr OdTfProperty_queryX(HandleRef jarg1, HandleRef jarg2)
static int OdTfProperty_getValue(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdTfProperty_attributes(HandleRef jarg1)
static int OdTfProperty_setValue(HandleRef jarg1, HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static IntPtr OdTfProperty_desc()
static int OdTfProperty_type(HandleRef jarg1)
static IntPtr OdTfProperty_createObject()
static IntPtr OdTfProperty_owner(HandleRef jarg1)
static String OdTfProperty_name(HandleRef jarg1)
static HandleRef getCPtr(OdRxClass obj)
Definition: OdRxClass.cs:25
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdTfObject obj)
Definition: OdTfObject.cs:25
override OdRxObject queryX(OdRxClass protocolClass)
Definition: OdTfProperty.cs:76
override OdRxClass isA()
Definition: OdTfProperty.cs:69
virtual OdTfAttributesContainer attributes()
virtual Teigha.Core.OdTfVariant.Type vb_type()
override void Dispose(bool disposing)
Definition: OdTfProperty.cs:29
virtual OdResult setValue(OdTfObject pObject, OdTfVariant value)
virtual OdResult getValue(OdTfObject pObject, OdTfVariant value)
static OdTfProperty cast(OdRxObject pObj)
Definition: OdTfProperty.cs:42
static string getRealClassName(IntPtr ptr)
virtual OdTfVariant defaultItemValue()
OdTfProperty(IntPtr cPtr, bool cMemoryOwn)
Definition: OdTfProperty.cs:20
virtual OdTfClass owner()
static HandleRef getCPtr(OdTfProperty obj)
Definition: OdTfProperty.cs:25
virtual String name()
static OdTfProperty createObject()
Definition: OdTfProperty.cs:83
virtual OdTfVariant.Type type()
virtual string vb_name()
static new OdRxClass desc()
Definition: OdTfProperty.cs:62
static HandleRef getCPtr(OdTfVariant obj)
Definition: OdTfVariant.cs:25