Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PDFDate.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 PDFDate : PDFObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public PDFDate(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.PDFDate_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(PDFDate 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 override bool isKindOf(PDFTypeId objType) {
43 bool ret = GlobalsPINVOKE.PDFDate_isKindOf(swigCPtr, (int)objType);
45 return ret;
46 }
47
48 public override PDFTypeId type() {
51 return ret;
52 }
53
54 public static PDFDate createObject(PDFDocument pDoc, bool isIndirect) {
55 MemoryManager mMan = MemoryManager.GetMemoryManager();
56 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #25
58
59 PDFDate ret = null;
60 if (null != mTrans)
61 {
62 mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<PDFDate>(typeof(PDFDate), ptr, true));
63 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFDate>(typeof(PDFDate), ptr, false);
64 }
65 else
66 {
67 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFDate>(typeof(PDFDate), ptr, true);
68 }
69
71 return ret;
72}
73
74 public static PDFDate createObject(PDFDocument pDoc) {
75 MemoryManager mMan = MemoryManager.GetMemoryManager();
76 MemoryTransaction mTrans = mMan.GetCurrentTransaction(); // MemoryTransaction #25
78
79 PDFDate ret = null;
80 if (null != mTrans)
81 {
82 mTrans.AddObject(Teigha.Core.Helpers.odCreateObjectInternal<PDFDate>(typeof(PDFDate), ptr, true));
83 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFDate>(typeof(PDFDate), ptr, false);
84 }
85 else
86 {
87 ret = Teigha.Core.Helpers.odCreateObjectInternal<PDFDate>(typeof(PDFDate), ptr, true);
88 }
89
91 return ret;
92}
93
94 public virtual bool set(OdTimeStamp UnivDate, sbyte /*SIMPLETYPE*/ Offset2LocalDateH, sbyte /*SIMPLETYPE*/ Offset2LocalDateM) {
95 bool ret = GlobalsPINVOKE.PDFDate_set__SWIG_0(swigCPtr, OdTimeStamp.getCPtr(UnivDate), Offset2LocalDateH /*SIMPLETYPE*/, Offset2LocalDateM /*SIMPLETYPE*/);
97 return ret;
98 }
99
100 public virtual bool set(OdTimeStamp UnivDate, sbyte /*SIMPLETYPE*/ Offset2LocalDateH) {
101 bool ret = GlobalsPINVOKE.PDFDate_set__SWIG_1(swigCPtr, OdTimeStamp.getCPtr(UnivDate), Offset2LocalDateH /*SIMPLETYPE*/);
103 return ret;
104 }
105
106 public virtual bool set(OdTimeStamp UnivDate) {
107 bool ret = GlobalsPINVOKE.PDFDate_set__SWIG_2(swigCPtr, OdTimeStamp.getCPtr(UnivDate));
109 return ret;
110 }
111
112 public virtual void get(OdTimeStamp UnivDate, out sbyte /*SIMPLETYPE*/ Offset2LocalDateH, out sbyte /*SIMPLETYPE*/ Offset2LocalDateM) {
113 GlobalsPINVOKE.PDFDate_get(swigCPtr, OdTimeStamp.getCPtr(UnivDate), out Offset2LocalDateH, out Offset2LocalDateM);
115 }
116
117 public virtual bool isOffset2LocalDateValid() {
120 return ret;
121 }
122
123 public virtual void setOffset2Unknown() {
126 }
127
128 public virtual String toString(bool bWithOffset) {
129 string ret = GlobalsPINVOKE.PDFDate_toString__SWIG_0(swigCPtr, bWithOffset);
131 return ret;
132}
133
134 public virtual String toString() {
135 string ret = GlobalsPINVOKE.PDFDate_toString__SWIG_1(swigCPtr);
137 return ret;
138}
139
140 public override bool Export(PDFIStream pStream, PDFVersion ver) {
141 bool ret = GlobalsPINVOKE.PDFDate_Export(swigCPtr, PDFIStream.getCPtr(pStream), PDFVersion.getCPtr(ver));
143 return ret;
144 }
145
146}
147
148}
static global::System.Exception Retrieve()
static IntPtr PDFDate_createObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFDate_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void PDFDate_setOffset2Unknown(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFDate_get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out sbyte jarg3, out sbyte jarg4)
static bool PDFDate_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, sbyte jarg3, sbyte jarg4)
static bool PDFDate_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static bool PDFDate_Export(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static int PDFDate_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static String PDFDate_toString__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr PDFDate_createObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void delete_PDFDate(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFDate_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, sbyte jarg3)
static String PDFDate_toString__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool PDFDate_isOffset2LocalDateValid(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdTimeStamp obj)
Definition: OdTimeStamp.cs:26
override bool Export(PDFIStream pStream, PDFVersion ver)
Definition: PDFDate.cs:140
override bool isKindOf(PDFTypeId objType)
Definition: PDFDate.cs:42
override PDFTypeId type()
Definition: PDFDate.cs:48
static PDFDate createObject(PDFDocument pDoc, bool isIndirect)
Definition: PDFDate.cs:54
static HandleRef getCPtr(PDFDate obj)
Definition: PDFDate.cs:25
override void Dispose(bool disposing)
Definition: PDFDate.cs:29
PDFDate(IntPtr cPtr, bool cMemoryOwn)
Definition: PDFDate.cs:20
virtual void setOffset2Unknown()
Definition: PDFDate.cs:123
virtual bool isOffset2LocalDateValid()
Definition: PDFDate.cs:117
static PDFDate createObject(PDFDocument pDoc)
Definition: PDFDate.cs:74
virtual String toString(bool bWithOffset)
Definition: PDFDate.cs:128
virtual String toString()
Definition: PDFDate.cs:134
static HandleRef getCPtr(PDFDocument obj)
Definition: PDFDocument.cs:26
static HandleRef getCPtr(PDFIStream obj)
Definition: PDFIStream.cs:25
virtual bool isIndirect()
Definition: PDFObject.cs:77
static HandleRef getCPtr(PDFVersion obj)
Definition: PDFVersion.cs:26