Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdFontStore.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 OdFontStore : 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 OdFontStore(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(OdFontStore obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdFontStore() {
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
52 set { // OdString csvarin
55 }
56
57 get { // OdString csvarout
58 string ret = GlobalsPINVOKE.OdFontStore_m_fileName_get(swigCPtr);
60 return ret;
61 }
62
63 }
64
65 public OdFont m_font {
66 set {
68
70 }
71
72 get {
73 OdFont ret = (OdFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdFont),GlobalsPINVOKE.OdFontStore_m_font_get(swigCPtr),false); /*createInt 4_3*/
74
76 return ret; //csvarout
77 }
78
79 }
80
81 public OdFontStore() : this(GlobalsPINVOKE.new_OdFontStore(), true) {
83 }
84
85}
86
87}
static global::System.Exception Retrieve()
static void delete_OdFontStore(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdFontStore_m_font_set(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static String OdFontStore_m_fileName_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdFontStore_m_font_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdFontStore_m_fileName_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static HandleRef getCPtr(OdFont obj)
Definition: OdFont.cs:25
OdFontStore(IntPtr cPtr, bool cMemoryOwn)
Definition: OdFontStore.cs:21
virtual void Dispose(bool disposing)
Definition: OdFontStore.cs:39
static HandleRef getCPtr(OdFontStore obj)
Definition: OdFontStore.cs:26