Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbSubentId.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 OdDbSubentId : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdDbSubentId(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdDbSubentId obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public OdDbSubentId() : this(GlobalsPINVOKE.new_OdDbSubentId__SWIG_0(), true) {
53 }
54
55 public OdDbSubentId(Teigha.Core.SubentType type, IntPtr /*SIMPLETYPE*/ index) : this(GlobalsPINVOKE.new_OdDbSubentId__SWIG_1((int)type, index /*SIMPLETYPE*/), true) {
57 }
58
59 public bool IsEqual(OdDbSubentId subentId) {
60 bool ret = GlobalsPINVOKE.OdDbSubentId_IsEqual(swigCPtr, OdDbSubentId.getCPtr(subentId));
62 return ret;
63 }
64
65 public bool IsNotEqual(OdDbSubentId subentId) {
66 bool ret = GlobalsPINVOKE.OdDbSubentId_IsNotEqual(swigCPtr, OdDbSubentId.getCPtr(subentId));
68 return ret;
69 }
70
74 return ret;
75 }
76
77 public void setType(Teigha.Core.SubentType type) {
80 }
81
82 public IntPtr index() {
83// test csout
84 /*SIMPLETYPE*/
85 IntPtr ret = GlobalsPINVOKE.OdDbSubentId_index(swigCPtr);
87 return ret;
88 }
89
90 public void setIndex(IntPtr /*SIMPLETYPE*/ index) {
91 GlobalsPINVOKE.OdDbSubentId_setIndex(swigCPtr, index /*SIMPLETYPE*/);
93 }
94
99 public Teigha.Core.SubentType vb_type() { return this.type(); }
100
101}
102
103}
static global::System.Exception Retrieve()
static void OdDbSubentId_setIndex(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static int OdDbSubentId_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbSubentId_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbSubentId_setType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool OdDbSubentId_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdDbSubentId(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdDbSubentId_index(global::System.Runtime.InteropServices.HandleRef jarg1)
Teigha.Core.SubentType vb_type()
Definition: OdDbSubentId.cs:99
bool IsNotEqual(OdDbSubentId subentId)
Definition: OdDbSubentId.cs:65
OdDbSubentId(Teigha.Core.SubentType type, IntPtr index)
Definition: OdDbSubentId.cs:55
static HandleRef getCPtr(OdDbSubentId obj)
Definition: OdDbSubentId.cs:26
OdDbSubentId(IntPtr cPtr, bool cMemoryOwn)
Definition: OdDbSubentId.cs:21
Teigha.Core.SubentType type()
Definition: OdDbSubentId.cs:71
bool IsEqual(OdDbSubentId subentId)
Definition: OdDbSubentId.cs:59
void setIndex(IntPtr index)
Definition: OdDbSubentId.cs:90
void setType(Teigha.Core.SubentType type)
Definition: OdDbSubentId.cs:77
virtual void Dispose(bool disposing)
Definition: OdDbSubentId.cs:39