Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PDFObject.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 PDFObject : PDFBaseObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public PDFObject(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.PDFObject_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(PDFObject 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.PDFObject_isKindOf(swigCPtr, (int)objType);
45 return ret;
46 }
47
48 public override PDFTypeId type() {
51 return ret;
52 }
53
54 public virtual void IndirectObjectID(PDFObjectID arg0) {
57 }
58
59 public virtual bool Export(PDFIStream pStream, PDFVersion ver) {
60 bool ret = GlobalsPINVOKE.PDFObject_Export(swigCPtr, PDFIStream.getCPtr(pStream), PDFVersion.getCPtr(ver));
62 return ret;
63 }
64
65 public virtual bool ExportLikeRef(PDFIStream arg0, PDFVersion arg1) {
68 return ret;
69 }
70
71 public virtual bool ExportLikeRefObj(PDFIStream arg0, PDFVersion arg1) {
74 return ret;
75 }
76
77 public virtual bool isIndirect() {
78 bool ret = GlobalsPINVOKE.PDFObject_isIndirect(swigCPtr);
80 return ret;
81 }
82
83 public virtual PDFDocument document() {
84 global::System.IntPtr cPtr = GlobalsPINVOKE.PDFObject_document(swigCPtr);
85 PDFDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new PDFDocument(cPtr, false);
87 return ret;
88 }
89
90 public virtual void setDocument(PDFDocument pDoc) {
93 }
94
95 public virtual void clearDictionaries() {
98 }
99
100}
101
102}
static global::System.Exception Retrieve()
static bool PDFObject_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static int PDFObject_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFObject_ExportLikeRefObj(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr PDFObject_document(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFObject_isIndirect(global::System.Runtime.InteropServices.HandleRef jarg1)
static void PDFObject_setDocument(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void PDFObject_clearDictionaries(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_PDFObject(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool PDFObject_ExportLikeRef(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool PDFObject_Export(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void PDFObject_IndirectObjectID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(PDFDocument obj)
Definition: PDFDocument.cs:26
static HandleRef getCPtr(PDFIStream obj)
Definition: PDFIStream.cs:25
PDFObject(IntPtr cPtr, bool cMemoryOwn)
Definition: PDFObject.cs:20
virtual PDFDocument document()
Definition: PDFObject.cs:83
virtual bool ExportLikeRefObj(PDFIStream arg0, PDFVersion arg1)
Definition: PDFObject.cs:71
virtual void clearDictionaries()
Definition: PDFObject.cs:95
static HandleRef getCPtr(PDFObject obj)
Definition: PDFObject.cs:25
override void Dispose(bool disposing)
Definition: PDFObject.cs:29
virtual void IndirectObjectID(PDFObjectID arg0)
Definition: PDFObject.cs:54
virtual bool ExportLikeRef(PDFIStream arg0, PDFVersion arg1)
Definition: PDFObject.cs:65
virtual bool isIndirect()
Definition: PDFObject.cs:77
override PDFTypeId type()
Definition: PDFObject.cs:48
virtual void setDocument(PDFDocument pDoc)
Definition: PDFObject.cs:90
override bool isKindOf(PDFTypeId objType)
Definition: PDFObject.cs:42
virtual bool Export(PDFIStream pStream, PDFVersion ver)
Definition: PDFObject.cs:59
static HandleRef getCPtr(PDFObjectID obj)
Definition: PDFObjectID.cs:26
static HandleRef getCPtr(PDFVersion obj)
Definition: PDFVersion.cs:26