Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
PDFBaseString.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 PDFBaseString : PDFObject {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
20 public PDFBaseString(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.PDFBaseString_SWIGUpcast(cPtr), cMemoryOwn) {
21 swigCPtr = new HandleRef(this, cPtr);
22 }
23
24 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 public static HandleRef getCPtr(PDFBaseString 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.PDFBaseString_isKindOf(swigCPtr, (int)objType);
45 return ret;
46 }
47
48 public override PDFTypeId type() {
51 return ret;
52 }
53
54 public PDFBaseString Assign(String stringSrc) {
55 PDFBaseString ret = new PDFBaseString(GlobalsPINVOKE.PDFBaseString_Assign(swigCPtr, stringSrc), false);
57 return ret;
58 }
59
60 public virtual String str() {
61 string ret = GlobalsPINVOKE.PDFBaseString_str__SWIG_0(swigCPtr);
63 return ret;
64}
65
66 public override bool Export(PDFIStream pStream, PDFVersion ver) {
67 bool ret = GlobalsPINVOKE.PDFBaseString_Export(swigCPtr, PDFIStream.getCPtr(pStream), PDFVersion.getCPtr(ver));
69 return ret;
70 }
71
72}
73
74}
static global::System.Exception Retrieve()
static bool PDFBaseString_Export(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool PDFBaseString_isKindOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static global::System.IntPtr PDFBaseString_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static int PDFBaseString_type(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_PDFBaseString(global::System.Runtime.InteropServices.HandleRef jarg1)
static String PDFBaseString_str__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
PDFBaseString Assign(String stringSrc)
override bool Export(PDFIStream pStream, PDFVersion ver)
override bool isKindOf(PDFTypeId objType)
virtual String str()
override PDFTypeId type()
static HandleRef getCPtr(PDFBaseString obj)
override void Dispose(bool disposing)
PDFBaseString(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(PDFIStream obj)
Definition: PDFIStream.cs:25
static HandleRef getCPtr(PDFVersion obj)
Definition: PDFVersion.cs:26