Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDgLinkNode.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 OdDgLinkNode : 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 OdDgLinkNode(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(OdDgLinkNode 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
55 return ret;
56 }
57
58 public virtual bool getValidFlag() {
59 bool ret = TG_DbPINVOKE.OdDgLinkNode_getValidFlag(swigCPtr);
61 return ret;
62 }
63
64 public virtual String getName() {
65 string ret = TG_DbPINVOKE.OdDgLinkNode_getName(swigCPtr);
67 return ret;
68}
69
70 public virtual void setName(String strName) {
71 TG_DbPINVOKE.OdDgLinkNode_setName(swigCPtr, strName);
73 }
74
75 public virtual bool clone(ref OdDgLinkNode pRet) {
76IntPtr p_pRet = OdDgLinkNode.getCPtr(pRet).Handle; /*SHAREDPTR& PRE*/
77 try {
78 bool ret = TG_DbPINVOKE.OdDgLinkNode_clone(swigCPtr, ref p_pRet);
80 return ret;
81 } finally {
82MemoryTransaction mTrans_pRet = MemoryManager.GetMemoryManager().GetCurrentTransaction();
83 if(mTrans_pRet != null)
84 mTrans_pRet.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<OdDgLinkNode>(typeof(OdDgLinkNode), p_pRet, true));
85 pRet = Teigha.Core.Helpers.odCreateObjectInternal<OdDgLinkNode>(typeof(OdDgLinkNode), p_pRet, mTrans_pRet == null);
86 /*SHAREDPTR& POST*/
87 }
88 }
89
90 public virtual bool isEqual(OdDgLinkNode obj) {
91 bool ret = TG_DbPINVOKE.OdDgLinkNode_isEqual(swigCPtr, OdDgLinkNode.getCPtr(obj));
93 return ret;
94 }
95
96 protected static string getRealClassName(IntPtr /*SIMPLETYPE*/ ptr) {
97 string ret = TG_DbPINVOKE.OdDgLinkNode_getRealClassName(ptr /*SIMPLETYPE*/);
99 return ret;
100 }
101
102 public enum OdDgLinkNodeType {
103 kUnknownLink = 0,
104 kFolderLink = 1,
105 kFileLink = 2,
106 kModelLink = 3,
107 kRegionLink = 4,
108 kPDFRegionLink = 5,
109 kExcelSheetLink = 6,
111 kWordRegionLink = 8,
112 kURLLink = 9
113 }
114
115}
116
117}
static global::System.Exception Retrieve()
static void delete_OdDgLinkNode(HandleRef jarg1)
static bool OdDgLinkNode_clone(HandleRef jarg1, ref IntPtr jarg2)
static bool OdDgLinkNode_isEqual(HandleRef jarg1, HandleRef jarg2)
static int OdDgLinkNode_getType(HandleRef jarg1)
static String OdDgLinkNode_getName(HandleRef jarg1)
static bool OdDgLinkNode_getValidFlag(HandleRef jarg1)
static void OdDgLinkNode_setName(HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static string OdDgLinkNode_getRealClassName(IntPtr jarg1)