Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdTextIterator.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 OdTextIterator : 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 OdTextIterator(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(OdTextIterator 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 String currPos() {
54 return ret;
55}
56
57 public OdTextIterator() : this(GlobalsPINVOKE.new_OdTextIterator__SWIG_0(), true) {
59 }
60
61 public OdTextIterator(String str, int nLen, bool bRaw, OdCodePageId codepage, OdFont pFont, OdFont pBigFont) : this(GlobalsPINVOKE.new_OdTextIterator__SWIG_1(str, nLen, bRaw, (int)codepage, OdFont.getCPtr(pFont), OdFont.getCPtr(pBigFont)), true) {
63 }
64
65 public char __ref__() {
66// test csout
67 /*SIMPLETYPE*/
68 char ret = GlobalsPINVOKE.OdTextIterator___ref__(swigCPtr);
70 return ret;
71 }
72
76 return ret;
77 }
78
79 public char nextChar() {
80// test csout
81 /*SIMPLETYPE*/
82 char ret = GlobalsPINVOKE.OdTextIterator_nextChar(swigCPtr);
84 return ret;
85 }
86
87 public bool currIsToleranceDivider() {
90 return ret;
91 }
92
93 public void setProcessToleranceDivider(bool b) {
96 }
97
101 }
102
103 public bool getTextAsDByte(OdCharArray retArray, OdUInt16Array pFlagsArray) {
104 bool ret = GlobalsPINVOKE.OdTextIterator_getTextAsDByte__SWIG_0(swigCPtr, OdCharArray.getCPtr(retArray), OdUInt16Array.getCPtr(pFlagsArray).Handle);
106 return ret;
107 }
108
109 public bool getTextAsDByte(OdCharArray retArray) {
112 return ret;
113 }
114
115 public int breakSafely(int len, ref string s) {
116IntPtr tmp_s = Marshal.StringToCoTaskMemUni(s);
117 IntPtr saved_s = tmp_s;
118 try {
119 int ret = GlobalsPINVOKE.OdTextIterator_breakSafely(swigCPtr, len, ref tmp_s);
121 return ret;
122 } finally {
123if (tmp_s != saved_s) s = Marshal.PtrToStringUni(tmp_s);
124 }
125 }
126
127 public void setProcessMIF(bool b) {
130 }
131
132}
133
134}
static global::System.Exception Retrieve()
static bool OdTextIterator_getTextAsDByte__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int OdTextIterator_breakSafely(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, ref IntPtr jarg3)
static bool OdTextIterator_getTextAsDByte__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static global::System.IntPtr OdTextIterator_currProperties(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdTextIterator(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTextIterator_setProcessMIF(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdTextIterator_setProcessToleranceDivider__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdTextIterator_setProcessToleranceDivider__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static char OdTextIterator_nextChar(global::System.Runtime.InteropServices.HandleRef jarg1)
static String OdTextIterator_currPos(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdTextIterator_currIsToleranceDivider(global::System.Runtime.InteropServices.HandleRef jarg1)
static char OdTextIterator___ref__(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdCharArray obj)
Definition: OdCharArray.cs:28
bool getTextAsDByte(OdCharArray retArray)
OdCharacterProperties currProperties()
int breakSafely(int len, ref string s)
bool getTextAsDByte(OdCharArray retArray, OdUInt16Array pFlagsArray)
void setProcessToleranceDivider(bool b)
virtual void Dispose(bool disposing)
OdTextIterator(String str, int nLen, bool bRaw, OdCodePageId codepage, OdFont pFont, OdFont pBigFont)
static HandleRef getCPtr(OdTextIterator obj)
OdTextIterator(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdUInt16Array obj)