Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
KeywordPair.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 PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class KeywordPair : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public KeywordPair(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(KeywordPair obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
32 ~KeywordPair() {
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
53 public KeywordPair() : this(PCADGlobalsPINVOKE.new_KeywordPair__SWIG_0(), true) {
55 }
56
59 }
60
61 public KeywordPair(KeywordPair other) : this(PCADGlobalsPINVOKE.new_KeywordPair__SWIG_2(KeywordPair.getCPtr(other)), true) {
63 }
64
66 set {
69 }
70 get {
71 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.KeywordPair_first_get(swigCPtr);
72 CFxString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxString(cPtr, false);
74 return ret;
75 }
76 }
77
79 set {
82 }
83 get {
84 global::System.IntPtr cPtr = PCADGlobalsPINVOKE.KeywordPair_second_get(swigCPtr);
85 CFxString ret = (cPtr == global::System.IntPtr.Zero) ? null : new CFxString(cPtr, false);
87 return ret;
88 }
89 }
90
91}
92
93}
static HandleRef getCPtr(CFxString obj)
Definition: CFxString.cs:28
KeywordPair(KeywordPair other)
Definition: KeywordPair.cs:61
KeywordPair(IntPtr cPtr, bool cMemoryOwn)
Definition: KeywordPair.cs:23
KeywordPair(CFxString first, CFxString second)
Definition: KeywordPair.cs:57
virtual void Dispose(bool disposing)
Definition: KeywordPair.cs:41
static HandleRef getCPtr(KeywordPair obj)
Definition: KeywordPair.cs:28
static void delete_KeywordPair(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr KeywordPair_first_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void KeywordPair_second_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void KeywordPair_first_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr KeywordPair_second_get(global::System.Runtime.InteropServices.HandleRef jarg1)