Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdRxIndexedSubProperty.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
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public OdRxIndexedSubProperty(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdRxIndexedSubProperty_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(OdRxIndexedSubProperty 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 OdRxMember createObject(String memberName, OdRxValueType type, OdRxProperty owner) {// OdRxMemberPtr
43 MemoryManager mMan = MemoryManager.GetMemoryManager();
44 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
46
47 OdRxMember ret = null;
48 if (null != mTrans)
49 {
50 mTrans.AddObject((OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),ptr, true));
51 ret = (OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),ptr, false);
52 }
53 else
54 {
55 ret = (OdRxMember)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxMember),ptr, true);
56 }
57
59 return ret;
60}
61
62 public virtual OdResult subGetValue(OdRxObject pO, int index, OdRxValue value) {
65 return ret;
66 }
67
68 public virtual OdResult subSetValue(OdRxObject pO, int index, OdRxValue value) {
71 return ret;
72 }
73
74 public virtual OdResult subInsertValue(OdRxObject pO, int index, OdRxValue value) {
77 return ret;
78 }
79
80 public virtual OdResult subRemoveValue(OdRxObject pO, int index) {
83 return ret;
84 }
85
86 public virtual OdRxValueIterator subNewValueIterator(OdRxObject pO) {// OdRxValueIteratorPtr
87 MemoryManager mMan = MemoryManager.GetMemoryManager();
88 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
90
91 OdRxValueIterator ret = null;
92 if (null != mTrans)
93 {
94 mTrans.AddObject((OdRxValueIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxValueIterator),ptr, true));
95 ret = (OdRxValueIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxValueIterator),ptr, false);
96 }
97 else
98 {
99 ret = (OdRxValueIterator)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxValueIterator),ptr, true);
100 }
101
103 return ret;
104}
105
106 public virtual OdResult subTryGetCount(OdRxObject pO, out int count) {
109 return ret;
110 }
111
116 public Teigha.Core.OdRxValueType vb_type() { return this.type(); }
117
122 public string vb_name() { return this.name(); }
123
124}
125
126}
static global::System.Exception Retrieve()
static int OdRxIndexedSubProperty_subInsertValue(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static IntPtr OdRxIndexedSubProperty_createObject([MarshalAs(UnmanagedType.LPWStr)]String jarg1, HandleRef jarg2, HandleRef jarg3)
static int OdRxIndexedSubProperty_subGetValue(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static int OdRxIndexedSubProperty_subTryGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, out int jarg3)
static void delete_OdRxIndexedSubProperty(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdRxIndexedSubProperty_subNewValueIterator(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static int OdRxIndexedSubProperty_subRemoveValue(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3)
static int OdRxIndexedSubProperty_subSetValue(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static OdRxMember createObject(String memberName, OdRxValueType type, OdRxProperty owner)
virtual OdResult subInsertValue(OdRxObject pO, int index, OdRxValue value)
virtual OdResult subRemoveValue(OdRxObject pO, int index)
OdRxIndexedSubProperty(IntPtr cPtr, bool cMemoryOwn)
virtual OdRxValueIterator subNewValueIterator(OdRxObject pO)
virtual OdResult subGetValue(OdRxObject pO, int index, OdRxValue value)
virtual OdResult subTryGetCount(OdRxObject pO, out int count)
virtual OdResult subSetValue(OdRxObject pO, int index, OdRxValue value)
static HandleRef getCPtr(OdRxIndexedSubProperty obj)
override void Dispose(bool disposing)
OdRxValueType type()
Definition: OdRxMember.cs:115
OdRxObject owner()
Definition: OdRxMember.cs:128
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26
static HandleRef getCPtr(OdRxProperty obj)
Definition: OdRxProperty.cs:25
static HandleRef getCPtr(OdRxValue obj)
Definition: OdRxValue.cs:26
static HandleRef getCPtr(OdRxValueType obj)