Extended .NET SDK Documentation 2025 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
55
61
62 public OdGiTextStyle() : this(GlobalsPINVOKE.new_OdGiTextStyle(), true) {
64 }
65
70
75
81
87
92
97
102
107
112
117
122
127
132
137
142
147
152
157
162
167
168 public bool isBackward() {
169 bool ret = GlobalsPINVOKE.OdGiTextStyle_isBackward(swigCPtr);
171 return ret;
172 }
173
179
180 public bool isVertical() {
181 bool ret = GlobalsPINVOKE.OdGiTextStyle_isVertical(swigCPtr);
183 return ret;
184 }
185
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
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
242
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
278
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
308
314
319
325
330
335
341
346
352
358
363
364 public void setNoUsePreferableFont(bool isUsePreferableFont) {
365 GlobalsPINVOKE.OdGiTextStyle_setNoUsePreferableFont(swigCPtr, isUsePreferableFont);
367 }
368
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)
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