Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGiTextStyle.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 OdGiTextStyle : 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 OdGiTextStyle(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(OdGiTextStyle 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 void setShapeLoaded(bool shapeLoaded) {
52 GlobalsPINVOKE.OdGiTextStyle_setShapeLoaded(swigCPtr, shapeLoaded);
54 }
55
56 public bool isShapeLoaded() {
59 return ret;
60 }
61
62 public OdGiTextStyle() : this(GlobalsPINVOKE.new_OdGiTextStyle(), true) {
64 }
65
66 public void set(String fontName, String bigFontName, double textSize, double xScale, double obliquingAngle, double trackingPercent, bool isBackward, bool isUpsideDown, bool isVertical, bool isOverlined, bool isUnderlined) {
69 }
70
71 public void loadStyleRec(OdRxObject pDb) {
74 }
75
79 return ret;
80}
81
85 return ret;
86}
87
88 public void setFontFilePath(String fontFilePath) {
89 GlobalsPINVOKE.OdGiTextStyle_setFontFilePath(swigCPtr, fontFilePath);
91 }
92
93 public void setBigFontFilePath(String bigFontFilePath) {
94 GlobalsPINVOKE.OdGiTextStyle_setBigFontFilePath(swigCPtr, bigFontFilePath);
96 }
97
98 public void setTextSize(double textSize) {
101 }
102
103 public void setXScale(double xScale) {
106 }
107
108 public void setObliquingAngle(double obliquingAngle) {
111 }
112
116 }
117
118 public void setBackward(bool isBackward) {
121 }
122
123 public void setUpsideDown(bool isUpsideDown) {
126 }
127
128 public void setVertical(bool isVertical) {
131 }
132
133 public void setUnderlined(bool isUnderlined) {
136 }
137
138 public void setOverlined(bool isOverlined) {
141 }
142
143 public void setStriked(bool isStriked) {
146 }
147
148 public void setPreLoaded(bool value) {
151 }
152
153 public void setShxFont(bool value) {
156 }
157
158 public void setFileName(String fontFileName) {
159 GlobalsPINVOKE.OdGiTextStyle_setFileName(swigCPtr, fontFileName);
161 }
162
166 }
167
168 public bool isBackward() {
169 bool ret = GlobalsPINVOKE.OdGiTextStyle_isBackward(swigCPtr);
171 return ret;
172 }
173
174 public bool isUpsideDown() {
175 bool ret = GlobalsPINVOKE.OdGiTextStyle_isUpsideDown(swigCPtr);
177 return ret;
178 }
179
180 public bool isVertical() {
181 bool ret = GlobalsPINVOKE.OdGiTextStyle_isVertical(swigCPtr);
183 return ret;
184 }
185
186 public bool isUnderlined() {
187 bool ret = GlobalsPINVOKE.OdGiTextStyle_isUnderlined(swigCPtr);
189 return ret;
190 }
191
192 public bool isOverlined() {
193 bool ret = GlobalsPINVOKE.OdGiTextStyle_isOverlined(swigCPtr);
195 return ret;
196 }
197
198 public bool isStriked() {
199 bool ret = GlobalsPINVOKE.OdGiTextStyle_isStriked(swigCPtr);
201 return ret;
202 }
203
204 public bool isPreLoaded() {
205 bool ret = GlobalsPINVOKE.OdGiTextStyle_isPreLoaded(swigCPtr);
207 return ret;
208 }
209
210 public bool isShxFont() {
211 bool ret = GlobalsPINVOKE.OdGiTextStyle_isShxFont(swigCPtr);
213 return ret;
214 }
215
216 public bool isTtfFont() {
217 bool ret = GlobalsPINVOKE.OdGiTextStyle_isTtfFont(swigCPtr);
219 return ret;
220 }
221
222 public void setIsShape(bool isShape) {
225 }
226
227 public bool isShape() {
228 bool ret = GlobalsPINVOKE.OdGiTextStyle_isShape(swigCPtr);
230 return ret;
231 }
232
233 public void setFont(String typeface, bool bold, bool italic, int charset, int pitchAndFamily) {
234 GlobalsPINVOKE.OdGiTextStyle_setFont__SWIG_0(swigCPtr, typeface, bold, italic, charset, pitchAndFamily);
236 }
237
238 public void setFont(OdFont font) {
241 }
242
243 public void setBigFont(OdFont pBigFont) {
246 }
247
248 public void font(ref string typeface, out bool bold, out bool italic, out int charset, out int pitchAndFamily) {
249IntPtr tmp_typeface = Marshal.StringToCoTaskMemUni(typeface);
250 IntPtr saved_typeface = tmp_typeface;
251 try {
252 GlobalsPINVOKE.OdGiTextStyle_font(swigCPtr, ref tmp_typeface, out bold, out italic, out charset, out pitchAndFamily);
254 } finally {
255if (tmp_typeface != saved_typeface) typeface = Marshal.PtrToStringUni(tmp_typeface);
256 }
257 }
258
259 public OdFont getFont() {
260 OdFont ret = (OdFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdFont),GlobalsPINVOKE.OdGiTextStyle_getFont(swigCPtr),false); /*createInt 3_2*/
261
263 return ret;
264}
265
266 public OdFont getBigFont() {
267 OdFont ret = (OdFont)Teigha.Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdFont),GlobalsPINVOKE.OdGiTextStyle_getBigFont(swigCPtr),false); /*createInt 3_2*/
268
270 return ret;
271}
272
276 return ret;
277 }
278
280 string ret = GlobalsPINVOKE.OdGiTextStyle_bigFontFileName(swigCPtr);
282 return ret;
283}
284
285 public double textSize() {
286 double ret = GlobalsPINVOKE.OdGiTextStyle_textSize(swigCPtr);
288 return ret;
289 }
290
291 public double xScale() {
292 double ret = GlobalsPINVOKE.OdGiTextStyle_xScale(swigCPtr);
294 return ret;
295 }
296
297 public double obliquingAngle() {
298 double ret = GlobalsPINVOKE.OdGiTextStyle_obliquingAngle(swigCPtr);
300 return ret;
301 }
302
303 public double trackingPercent() {
304 double ret = GlobalsPINVOKE.OdGiTextStyle_trackingPercent(swigCPtr);
306 return ret;
307 }
308
312 return ret;
313 }
314
315 public void setCodePage(OdCodePageId codePage) {
316 GlobalsPINVOKE.OdGiTextStyle_setCodePage(swigCPtr, (int)codePage);
318 }
319
320 public String styleName() {
321 string ret = GlobalsPINVOKE.OdGiTextStyle_styleName(swigCPtr);
323 return ret;
324}
325
326 public void setStyleName(String name) {
329 }
330
334 }
335
336 public bool isUseIntercharSpacing() {
339 return ret;
340 }
341
345 }
346
350 return ret;
351 }
352
353 public double getIntercharSpacing() {
356 return ret;
357 }
358
359 public void setIntercharSpacing(double dSpacing) {
362 }
363
364 public void setNoUsePreferableFont(bool isUsePreferableFont) {
365 GlobalsPINVOKE.OdGiTextStyle_setNoUsePreferableFont(swigCPtr, isUsePreferableFont);
367 }
368
369 public bool isNoUsePreferableFont() {
372 return ret;
373 }
374
375 public const int kShape = 0x01;
376 public const int kUpsideDown = 0x02;
377 public const int kVertical = 0x04;
378 public const int kUnderlined = 0x08;
379 public const int kOverlined = 0x10;
380 public const int kShxFont = 0x20;
381 public const int kPreLoaded = 0x40;
382 public const int kBackward = 0x80;
383 public const int kShapeLoaded = 0x100;
384 public const int kStriked = 0x200;
385 public const int kUseIntercharSpacing = 0x400;
386 public const int kFixedIntercharSpacing = 0x800;
387 public const int kNoUsePreferableFont = 0x1000;
388
389}
390
391}
static global::System.Exception Retrieve()
static void OdGiTextStyle_setShxFont(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_setFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdGiTextStyle_setStyleName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdGiTextStyle_isTtfFont(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setBigFont(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdGiTextStyle_setIsShape(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdGiTextStyle_isPreLoaded(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setIsUseIntercharSpacing(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdGiTextStyle_isBackward(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setTextSize(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static String OdGiTextStyle_getFontFilePath(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdGiTextStyle_setFont__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, bool jarg3, bool jarg4, int jarg5, int jarg6)
static IntPtr OdGiTextStyle_getBigFont(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdGiTextStyle_bigFontFileName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGiTextStyle(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiTextStyle_isShxFont(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setIntercharSpacing(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGiTextStyle_isOverlined(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setUnderlined(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_setCodePage(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static void OdGiTextStyle_setObliquingAngle(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGiTextStyle_setBigFontFileName(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static String OdGiTextStyle_styleName(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_font(global::System.Runtime.InteropServices.HandleRef jarg1, ref IntPtr jarg2, out bool jarg3, out bool jarg4, out int jarg5, out int jarg6)
static bool OdGiTextStyle_isUnderlined(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGiTextStyle_trackingPercent(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setFontFilePath(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdGiTextStyle_setNoUsePreferableFont(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_loadStyleRec(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdGiTextStyle_setStriked(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_setTrackingPercent(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGiTextStyle_getIntercharSpacing(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGiTextStyle_xScale(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setOverlined(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static bool OdGiTextStyle_isUpsideDown(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setVertical(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_setBackward(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static double OdGiTextStyle_obliquingAngle(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setFont__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static bool OdGiTextStyle_isShape(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setShapeLoaded(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static double OdGiTextStyle_textSize(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiTextStyle_isVertical(global::System.Runtime.InteropServices.HandleRef jarg1)
static int OdGiTextStyle_getCodePage(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdGiTextStyle_getBigFontFilePath(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static global::System.IntPtr OdGiTextStyle_ttfdescriptor__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiTextStyle_isUseIntercharSpacing(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiTextStyle_isFixedIntercharSpacing(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setUpsideDown(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_setIsFixedIntercharSpacing(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdGiTextStyle_set(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, [MarshalAs(UnmanagedType.LPWStr)]String jarg3, double jarg4, double jarg5, double jarg6, double jarg7, bool jarg8, bool jarg9, bool jarg10, bool jarg11, bool jarg12)
static bool OdGiTextStyle_isShapeLoaded(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setBigFontFilePath(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdGiTextStyle_isStriked(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGiTextStyle_isNoUsePreferableFont(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setPreLoaded(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static IntPtr OdGiTextStyle_getFont(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGiTextStyle_setXScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static HandleRef getCPtr(OdFont obj)
Definition: OdFont.cs:25
void setBigFont(OdFont pBigFont)
OdGiTextStyle(IntPtr cPtr, bool cMemoryOwn)
void setBigFontFileName(String bigFontFileName)
void setFileName(String fontFileName)
void setUpsideDown(bool isUpsideDown)
void setIsFixedIntercharSpacing(bool isUseIntercharSpacing)
void setObliquingAngle(double obliquingAngle)
void setFont(OdFont font)
void setStyleName(String name)
void font(ref string typeface, out bool bold, out bool italic, out int charset, out int pitchAndFamily)
void setIsShape(bool isShape)
void loadStyleRec(OdRxObject pDb)
void setOverlined(bool isOverlined)
void setPreLoaded(bool value)
void setVertical(bool isVertical)
void setNoUsePreferableFont(bool isUsePreferableFont)
void setBackward(bool isBackward)
void setXScale(double xScale)
void setBigFontFilePath(String bigFontFilePath)
void setIntercharSpacing(double dSpacing)
void setShxFont(bool value)
void setTrackingPercent(double trackingPercent)
void setUnderlined(bool isUnderlined)
void setShapeLoaded(bool shapeLoaded)
String getFontFilePath(OdRxObject pDb)
String getBigFontFilePath(OdRxObject pDb)
void setFontFilePath(String fontFilePath)
void setCodePage(OdCodePageId codePage)
virtual void Dispose(bool disposing)
OdCodePageId getCodePage()
void setStriked(bool isStriked)
void setFont(String typeface, bool bold, bool italic, int charset, int pitchAndFamily)
OdTtfDescriptor ttfdescriptor()
static HandleRef getCPtr(OdGiTextStyle obj)
void setIsUseIntercharSpacing(bool isUseIntercharSpacing)
void setTextSize(double textSize)
static HandleRef getCPtr(OdRxObject obj)
Definition: OdRxObject.cs:26