Extended .NET SDK Documentation 2024 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
108 set {
111 }
112 get {
115 return ret;
116 }
117 }
118
120 set {
123 }
124 get {
127 return ret;
128 }
129 }
130
131 public bool scaleToPage {
132 set {
135 }
136 get {
137 bool ret = GlobalsPINVOKE.Watermark_scaleToPage_get(swigCPtr);
139 return ret;
140 }
141 }
142
143 public Watermark() : this(GlobalsPINVOKE.new_Watermark(), true) {
145 }
146
147 public enum WatermarkFonts {
150 kCourier,
151 kSymbol,
162 }
163
164 public enum WatermarkPosition {
172 }
173
174}
175
176}
static global::System.Exception Retrieve()
static int Watermark_font_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_scaleToPage_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static String Watermark_text_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 int Watermark_position_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_color_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static UInt16 Watermark_fontSize_get(global::System.Runtime.InteropServices.HandleRef jarg1)
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 bool Watermark_scaleToPage_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt16 Watermark_opacity_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_Watermark(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 Watermark_color_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void Watermark_font_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
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