Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
Watermark.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 Watermark : 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 Watermark(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(Watermark obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~Watermark() {
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 String text {
52 set { // OdString csvarin
55 }
56
57 get { // OdString csvarout
58 string ret = GlobalsPINVOKE.Watermark_text_get(swigCPtr);
60 return ret;
61 }
62
63 }
64
65 public UInt32 color {
66 set {
67 /*SIMPLETYPE*/
68 GlobalsPINVOKE.Watermark_color_set(swigCPtr, value /*SIMPLETYPE*/);
70 }
71 get {
72 /*SIMPLETYPE*/
73 UInt32 ret = GlobalsPINVOKE.Watermark_color_get(swigCPtr);
75 return ret;
76 }
77 }
78
79 public UInt16 fontSize {
80 set {
81 /*SIMPLETYPE*/
82 GlobalsPINVOKE.Watermark_fontSize_set(swigCPtr, value /*SIMPLETYPE*/);
84 }
85 get {
86 /*SIMPLETYPE*/
87 UInt16 ret = GlobalsPINVOKE.Watermark_fontSize_get(swigCPtr);
89 return ret;
90 }
91 }
92
93 public UInt16 opacity {
94 set {
95 /*SIMPLETYPE*/
96 GlobalsPINVOKE.Watermark_opacity_set(swigCPtr, value /*SIMPLETYPE*/);
98 }
99 get {
100 /*SIMPLETYPE*/
101 UInt16 ret = GlobalsPINVOKE.Watermark_opacity_get(swigCPtr);
103 return ret;
104 }
105 }
106
118
130
142
144 set {
147 }
148 get {
149 global::System.IntPtr cPtr = GlobalsPINVOKE.Watermark_offset_get(swigCPtr);
150 OdGePoint2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint2d(cPtr, false);
152 return ret;
153 }
154 }
155
167
179
181 set { // OdString csvarin
184 }
185
186 get { // OdString csvarout
187 string ret = GlobalsPINVOKE.Watermark_fontName_get(swigCPtr);
189 return ret;
190 }
191
192 }
193
195 set { // OdString csvarin
198 }
199
200 get { // OdString csvarout
201 string ret = GlobalsPINVOKE.Watermark_imagePath_get(swigCPtr);
203 return ret;
204 }
205
206 }
207
208 public UInt16 imageWidth {
209 set {
210 /*SIMPLETYPE*/
211 GlobalsPINVOKE.Watermark_imageWidth_set(swigCPtr, value /*SIMPLETYPE*/);
213 }
214 get {
215 /*SIMPLETYPE*/
216 UInt16 ret = GlobalsPINVOKE.Watermark_imageWidth_get(swigCPtr);
218 return ret;
219 }
220 }
221
222 public UInt16 imageHeight {
223 set {
224 /*SIMPLETYPE*/
225 GlobalsPINVOKE.Watermark_imageHeight_set(swigCPtr, value /*SIMPLETYPE*/);
227 }
228 get {
229 /*SIMPLETYPE*/
230 UInt16 ret = GlobalsPINVOKE.Watermark_imageHeight_get(swigCPtr);
232 return ret;
233 }
234 }
235
236 public Watermark() : this(GlobalsPINVOKE.new_Watermark(), true) {
238 }
239
257
271
272}
273
274}
static global::System.Exception Retrieve()
static UInt16 Watermark_imageWidth_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int Watermark_font_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_imageWidth_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static void Watermark_scaleToPage_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void Watermark_fontName_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String Watermark_text_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double Watermark_rotation_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_position_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void Watermark_text_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt16 Watermark_imageHeight_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static String Watermark_fontName_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr Watermark_offset_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int Watermark_position_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_color_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static void Watermark_imagePath_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static UInt16 Watermark_fontSize_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_pageIndex_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void Watermark_fontSize_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static void Watermark_opacity_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static void Watermark_offset_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool Watermark_scaleToPage_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt16 Watermark_opacity_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_imageHeight_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt16 jarg2)
static void Watermark_rotation_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void delete_Watermark(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 Watermark_color_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static String Watermark_imagePath_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int Watermark_pageIndex_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_font_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static HandleRef getCPtr(OdGePoint2d obj)
Watermark(IntPtr cPtr, bool cMemoryOwn)
Definition Watermark.cs:21
static HandleRef getCPtr(Watermark obj)
Definition Watermark.cs:26
Watermark.WatermarkFonts font
Definition Watermark.cs:107
virtual void Dispose(bool disposing)
Definition Watermark.cs:39
Watermark.WatermarkPosition position
Definition Watermark.cs:119