Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdPdfImport.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdPdfImport : OdRxObject {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdPdfImport(IntPtr cPtr, bool cMemoryOwn) : base(TD_DbPINVOKE.OdPdfImport_SWIGUpcast(cPtr), cMemoryOwn) {
22 swigCPtr = new HandleRef(this, cPtr);
23 }
24
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdPdfImport obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 protected override void Dispose(bool disposing) {
31 lock(this) {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 if (swigCMemOwn) {
34 swigCMemOwn = false;
36 }
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 }
39 base.Dispose(disposing);
40 }
41 }
42
48
49 public virtual OdRxDictionary properties() {// OdRxDictionaryPtr
50 MemoryManager mMan = MemoryManager.GetMemoryManager();
51 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #17
52 IntPtr ptr = TD_DbPINVOKE.OdPdfImport_properties(swigCPtr);
53
54 OdRxDictionary ret = null;
55 if (null != mTrans)
56 {
57 mTrans.AddObject((OdRxDictionary)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxDictionary),ptr, true));
58 ret = (OdRxDictionary)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxDictionary),ptr, false);
59 }
60 else
61 {
62 ret = (OdRxDictionary)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdRxDictionary),ptr, true);
63 }
64
66 return ret;
67}
68
69 public virtual void setPreferableFontCallback(TD_Db.PreferableFontCallbackDelegate /*CS_DELEGATE_CONNECT_TYPEMAP_PART_BASE cstype*/ callback) {
70/*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin start*/
71 TD_Db.PreferableFontCallbackDelegateNative callback_inDelegate = null;
72 if (callback != null)
73 {
74 callback_inDelegate = (IntPtr arg1,IntPtr arg2,bool arg3) =>
75 {
76 ;
77 try
78 {
79 return OdString2StringConvHelper.StringToOdAnsiString(callback(Marshal.PtrToStringUni(arg1),Marshal.PtrToStringUni(arg2),arg3));
80 }
81 finally
82 {
83 ;
84 }
85 };
86 }
87 IntPtr callback_ptr = (callback == null) ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(callback_inDelegate);
88 Teigha.Core.DelegateHolder.Add(callback_inDelegate);
89 /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN pre csin end*/
90 try {
91 TD_DbPINVOKE.OdPdfImport_setPreferableFontCallback(swigCPtr, callback_ptr /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN csin*/ );
93 } finally {
94//Empty post /*CS_DELEGATE_CONNECT_TYPEMAP_PART_NONVOID_RETURN post csin*/
95 }
96 }
97
98 protected static string getRealClassName(IntPtr ptr) {
99 string ret = TD_DbPINVOKE.OdPdfImport_getRealClassName(ptr /*SIMPLETYPE*/);
101 return ret;
102 }
103
108 public virtual Teigha.Core.OdRxDictionary vb_properties() { return this.properties(); }
109
122
123}
124
125}
override void Dispose(bool disposing)
static HandleRef getCPtr(OdPdfImport obj)
virtual Teigha.Core.OdRxDictionary vb_properties()
OdPdfImport(IntPtr cPtr, bool cMemoryOwn)
virtual void setPreferableFontCallback(TD_Db.PreferableFontCallbackDelegate callback)
static string getRealClassName(IntPtr ptr)
virtual OdRxDictionary properties()
delegate String PreferableFontCallbackDelegate(string arg1, string arg2, bool arg3)
static global::System.Exception Retrieve()
static int OdPdfImport_import(HandleRef jarg1)
static IntPtr OdPdfImport_properties(HandleRef jarg1)
static void OdPdfImport_setPreferableFontCallback(HandleRef jarg1, IntPtr jarg2)
static void delete_OdPdfImport(HandleRef jarg1)
static string OdPdfImport_getRealClassName(IntPtr jarg1)