Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGsPageParams.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 OdGsPageParams : 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 OdGsPageParams(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(OdGsPageParams obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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 OdGsPageParams() : this(GlobalsPINVOKE.new_OdGsPageParams__SWIG_0(), true) {
53 }
54
55 public OdGsPageParams(double dPaperWidth, double dPaperHeight) : this(GlobalsPINVOKE.new_OdGsPageParams__SWIG_1(dPaperWidth, dPaperHeight), true) {
57 }
58
59 public OdGsPageParams(OdGsPageParams data) : this(GlobalsPINVOKE.new_OdGsPageParams__SWIG_2(OdGsPageParams.getCPtr(data)), true) {
61 }
62
66 return ret;
67 }
68
69 public double getPaperWidth() {
70 double ret = GlobalsPINVOKE.OdGsPageParams_getPaperWidth(swigCPtr);
72 return ret;
73 }
74
75 public double getPaperHeight() {
76 double ret = GlobalsPINVOKE.OdGsPageParams_getPaperHeight(swigCPtr);
78 return ret;
79 }
80
81 public double getLeftMargin() {
82 double ret = GlobalsPINVOKE.OdGsPageParams_getLeftMargin(swigCPtr);
84 return ret;
85 }
86
87 public double getRightMargin() {
88 double ret = GlobalsPINVOKE.OdGsPageParams_getRightMargin(swigCPtr);
90 return ret;
91 }
92
93 public double getTopMargin() {
94 double ret = GlobalsPINVOKE.OdGsPageParams_getTopMargin(swigCPtr);
96 return ret;
97 }
98
99 public double getBottomMargin() {
100 double ret = GlobalsPINVOKE.OdGsPageParams_getBottomMargin(swigCPtr);
102 return ret;
103 }
104
105 public void set(double dPaperWidth, double dPaperHeight, double dLeftMargin, double dRightMargin, double dTopMargin, double dBottomMargin) {
106 GlobalsPINVOKE.OdGsPageParams_set__SWIG_0(swigCPtr, dPaperWidth, dPaperHeight, dLeftMargin, dRightMargin, dTopMargin, dBottomMargin);
108 }
109
110 public void set(double dPaperWidth, double dPaperHeight, double dLeftMargin, double dRightMargin, double dTopMargin) {
111 GlobalsPINVOKE.OdGsPageParams_set__SWIG_1(swigCPtr, dPaperWidth, dPaperHeight, dLeftMargin, dRightMargin, dTopMargin);
113 }
114
115 public void set(double dPaperWidth, double dPaperHeight, double dLeftMargin, double dRightMargin) {
116 GlobalsPINVOKE.OdGsPageParams_set__SWIG_2(swigCPtr, dPaperWidth, dPaperHeight, dLeftMargin, dRightMargin);
118 }
119
120 public void set(double dPaperWidth, double dPaperHeight, double dLeftMargin) {
121 GlobalsPINVOKE.OdGsPageParams_set__SWIG_3(swigCPtr, dPaperWidth, dPaperHeight, dLeftMargin);
123 }
124
125 public void set(double dPaperWidth, double dPaperHeight) {
126 GlobalsPINVOKE.OdGsPageParams_set__SWIG_4(swigCPtr, dPaperWidth, dPaperHeight);
128 }
129
130 public void scale(double dScale) {
131 GlobalsPINVOKE.OdGsPageParams_scale(swigCPtr, dScale);
133 }
134
135}
136
137}
static global::System.Exception Retrieve()
static double OdGsPageParams_getRightMargin(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsPageParams_set__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3)
static global::System.IntPtr OdGsPageParams_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGsPageParams_getBottomMargin(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsPageParams_scale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void delete_OdGsPageParams(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGsPageParams_getLeftMargin(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGsPageParams_getTopMargin(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGsPageParams_set__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4)
static void OdGsPageParams_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7)
static void OdGsPageParams_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5)
static void OdGsPageParams_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6)
static double OdGsPageParams_getPaperHeight(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGsPageParams_getPaperWidth(global::System.Runtime.InteropServices.HandleRef jarg1)
OdGsPageParams(double dPaperWidth, double dPaperHeight)
OdGsPageParams(IntPtr cPtr, bool cMemoryOwn)
OdGsPageParams(OdGsPageParams data)
virtual void Dispose(bool disposing)
void scale(double dScale)
static HandleRef getCPtr(OdGsPageParams obj)
OdGsPageParams Assign(OdGsPageParams from)