Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PDFVersion.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 PDFVersion : 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 PDFVersion(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(PDFVersion obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~PDFVersion() {
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 PDFVersion() : this(GlobalsPINVOKE.new_PDFVersion__SWIG_0(), true) {
53 }
54
55 public PDFVersion(PDFVersion.Versions PdfVer) : this(GlobalsPINVOKE.new_PDFVersion__SWIG_1((int)PdfVer), true) {
57 }
58
62 return ret;
63 }
64
65 public String asString() {
66 string ret = GlobalsPINVOKE.PDFVersion_asString(swigCPtr);
68 return ret;
69}
70
74 return ret;
75 }
76
78 PDFVersion ret = new PDFVersion(GlobalsPINVOKE.PDFVersion_Assign(swigCPtr, (int)ver), false);
80 return ret;
81 }
82
83 public bool IsEqual(PDFVersion ver) {
86 return ret;
87 }
88
89 public bool IsEqual(PDFVersion.Versions ver) {
90 bool ret = GlobalsPINVOKE.PDFVersion_IsEqual__SWIG_1(swigCPtr, (int)ver);
92 return ret;
93 }
94
95 public enum Versions {
96 kPDFUnknown = 0,
97 kPDFv1_0 = 10,
98 kPDFv1_1 = 11,
99 kPDFv1_2 = 12,
100 kPDFv1_3 = 13,
101 kPDFv1_4 = 14,
102 kPDFv1_5 = 15,
103 kPDFv1_6 = 16,
104 kPDFv1_7 = 17,
106 }
107
108}
109
110}
static global::System.Exception Retrieve()
static bool PDFVersion_IsEqual__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int PDFVersion_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool PDFVersion_IsEqual__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int PDFVersion_Version(global::System.Runtime.InteropServices.HandleRef jarg1)
static String PDFVersion_asString(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_PDFVersion(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr PDFVersion_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
PDFVersion(IntPtr cPtr, bool cMemoryOwn)
Definition: PDFVersion.cs:21
PDFVersion.Versions Version()
Definition: PDFVersion.cs:59
PDFVersion.Versions FromString(String str)
Definition: PDFVersion.cs:71
PDFVersion(PDFVersion.Versions PdfVer)
Definition: PDFVersion.cs:55
virtual void Dispose(bool disposing)
Definition: PDFVersion.cs:39
bool IsEqual(PDFVersion ver)
Definition: PDFVersion.cs:83
PDFVersion Assign(PDFVersion.Versions ver)
Definition: PDFVersion.cs:77
bool IsEqual(PDFVersion.Versions ver)
Definition: PDFVersion.cs:89
static HandleRef getCPtr(PDFVersion obj)
Definition: PDFVersion.cs:26