Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdDbMTextFragment.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.TD {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16
17public class OdDbMTextFragment : global::System.IDisposable {
18 private Object locker = new Object();
19 private HandleRef swigCPtr;
20 protected bool swigCMemOwn;
21 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
22 public OdDbMTextFragment(IntPtr cPtr, bool cMemoryOwn) {
23 swigCMemOwn = cMemoryOwn;
24 swigCPtr = new HandleRef(this, cPtr);
25 }
26 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
27 public static HandleRef getCPtr(OdDbMTextFragment obj) {
28 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
29 }
30
32 Dispose(false);
33 }
34
35 public void Dispose() {
36 Dispose(true);
37 global::System.GC.SuppressFinalize(this);
38 }
39
40 protected virtual void Dispose(bool disposing) {
41 lock(this) {
42 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43 if (swigCMemOwn) {
44 swigCMemOwn = false;
46 }
47 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48 }
49 }
50 }
51
53 set {
56 }
57 get {
58 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbMTextFragment_location_get(swigCPtr);
59 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
61 return ret;
62 }
63 }
64
65 public String text {
66 set { // OdString csvarin
69 }
70
71 get { // OdString csvarout
72 string ret = TD_DbPINVOKE.OdDbMTextFragment_text_get(swigCPtr);
74 return ret;
75 }
76
77 }
78
79 public String font {
80 set { // OdString csvarin
83 }
84
85 get { // OdString csvarout
86 string ret = TD_DbPINVOKE.OdDbMTextFragment_font_get(swigCPtr);
88 return ret;
89 }
90
91 }
92
93 public String bigfont {
94 set { // OdString csvarin
97 }
98
99 get { // OdString csvarout
100 string ret = TD_DbPINVOKE.OdDbMTextFragment_bigfont_get(swigCPtr);
102 return ret;
103 }
104
105 }
106
108 set {
111 }
112 get {
113 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbMTextFragment_extents_get(swigCPtr);
114 OdGePoint2d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint2d(cPtr, false);
116 return ret;
117 }
118 }
119
120 public double capsHeight {
121 set {
124 }
125 get {
126 double ret = TD_DbPINVOKE.OdDbMTextFragment_capsHeight_get(swigCPtr);
128 return ret;
129 }
130 }
131
132 public double widthFactor {
133 set {
136 }
137 get {
138 double ret = TD_DbPINVOKE.OdDbMTextFragment_widthFactor_get(swigCPtr);
140 return ret;
141 }
142 }
143
144 public double obliqueAngle {
145 set {
148 }
149 get {
152 return ret;
153 }
154 }
155
156 public double trackingFactor {
157 set {
160 }
161 get {
164 return ret;
165 }
166 }
167
169 set {
172 }
173 get {
174 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbMTextFragment_color_get(swigCPtr);
175 OdCmEntityColor ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdCmEntityColor(cPtr, false);
177 return ret;
178 }
179 }
180
181 public bool vertical {
182 set {
185 }
186 get {
187 bool ret = TD_DbPINVOKE.OdDbMTextFragment_vertical_get(swigCPtr);
189 return ret;
190 }
191 }
192
193 public bool stackTop {
194 set {
197 }
198 get {
199 bool ret = TD_DbPINVOKE.OdDbMTextFragment_stackTop_get(swigCPtr);
201 return ret;
202 }
203 }
204
205 public bool stackBottom {
206 set {
209 }
210 get {
213 return ret;
214 }
215 }
216
217 public bool underlined {
218 set {
221 }
222 get {
225 return ret;
226 }
227 }
228
229 public bool overlined {
230 set {
233 }
234 get {
237 return ret;
238 }
239 }
240
241 public bool strikethrough {
242 set {
245 }
246 get {
249 return ret;
250 }
251 }
252
254 set {
257 }
258 get {
259 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbMTextFragment_underPoints_get(swigCPtr);
260 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
262 return ret;
263 }
264 }
265
267 set {
270 }
271 get {
272 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbMTextFragment_overPoints_get(swigCPtr);
273 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
275 return ret;
276 }
277 }
278
280 set {
283 }
284 get {
285 global::System.IntPtr cPtr = TD_DbPINVOKE.OdDbMTextFragment_strikePoints_get(swigCPtr);
286 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
288 return ret;
289 }
290 }
291
293 set { // OdString csvarin
296 }
297
298 get { // OdString csvarout
299 string ret = TD_DbPINVOKE.OdDbMTextFragment_fontname_get(swigCPtr);
301 return ret;
302 }
303
304 }
305
306 public int charset {
307 set {
310 }
311 get {
314 return ret;
315 }
316 }
317
318 public bool bold {
319 set {
322 }
323 get {
324 bool ret = TD_DbPINVOKE.OdDbMTextFragment_bold_get(swigCPtr);
326 return ret;
327 }
328 }
329
330 public bool italic {
331 set {
334 }
335 get {
336 bool ret = TD_DbPINVOKE.OdDbMTextFragment_italic_get(swigCPtr);
338 return ret;
339 }
340 }
341
342 public int changeStyle {
343 set {
346 }
347 get {
350 return ret;
351 }
352 }
353
354 public bool lineBreak {
355 set {
358 }
359 get {
362 return ret;
363 }
364 }
365
366 public bool newParagraph {
367 set {
370 }
371 get {
374 return ret;
375 }
376 }
377
378 public OdDbMTextFragment() : this(TD_DbPINVOKE.new_OdDbMTextFragment(), true) {
380 }
381
382}
383
384}
static HandleRef getCPtr(OdCmEntityColor obj)
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdDbMTextFragment obj)
virtual void Dispose(bool disposing)
OdDbMTextFragment(IntPtr cPtr, bool cMemoryOwn)
static global::System.Exception Retrieve()
static bool OdDbMTextFragment_stackTop_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDbMTextFragment_text_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_italic_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void delete_OdDbMTextFragment(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDbMTextFragment_fontname_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdDbMTextFragment_obliqueAngle_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdDbMTextFragment_changeStyle_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_overlined_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static int OdDbMTextFragment_charset_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDbMTextFragment_color_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_location_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbMTextFragment_lineBreak_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbMTextFragment_italic_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_bold_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbMTextFragment_fontname_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDbMTextFragment_overPoints_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdDbMTextFragment_font_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDbMTextFragment_vertical_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbMTextFragment_strikethrough_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdDbMTextFragment_widthFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_bigfont_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDbMTextFragment_underPoints_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbMTextFragment_strikePoints_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_underlined_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static double OdDbMTextFragment_trackingFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbMTextFragment_underlined_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_stackBottom_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdDbMTextFragment_obliqueAngle_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdDbMTextFragment_extents_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdDbMTextFragment_underPoints_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDbMTextFragment_font_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_widthFactor_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdDbMTextFragment_extents_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_changeStyle_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdDbMTextFragment_charset_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static double OdDbMTextFragment_capsHeight_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_text_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdDbMTextFragment_newParagraph_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbMTextFragment_vertical_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_stackTop_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdDbMTextFragment_newParagraph_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_strikePoints_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbMTextFragment_stackBottom_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_capsHeight_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdDbMTextFragment_color_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdDbMTextFragment_lineBreak_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdDbMTextFragment_bigfont_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_strikethrough_set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr OdDbMTextFragment_overPoints_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdDbMTextFragment_bold_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdDbMTextFragment_location_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdDbMTextFragment_trackingFactor_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdDbMTextFragment_overlined_get(global::System.Runtime.InteropServices.HandleRef jarg1)