14using System.Runtime.InteropServices;
17 , global::System.Collections.Generic.IDictionary<String, OdPsPlotStyle>
19 private Object locker =
new Object();
20 private HandleRef swigCPtr;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
25 swigCPtr =
new HandleRef(
this, cPtr);
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
29 return (obj ==
null) ?
new HandleRef(
null, IntPtr.Zero) : obj.swigCPtr;
38 global::System.GC.SuppressFinalize(
this);
41 protected virtual void Dispose(
bool disposing) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
48 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
null, global::System.IntPtr.Zero);
85 public global::System.Collections.Generic.ICollection<
String>
Keys {
87 global::System.Collections.Generic.ICollection<
String> keys =
new global::System.Collections.Generic.List<
String>();
88 int size = this.
Count;
90 global::System.IntPtr iter = create_iterator_begin();
91 for (
int i = 0; i < size; i++) {
92 keys.Add(get_next_key(iter));
94 destroy_iterator(iter);
102 global::System.Collections.Generic.ICollection<
OdPsPlotStyle> vals =
new global::System.Collections.Generic.List<
OdPsPlotStyle>();
103 foreach (global::System.Collections.Generic.KeyValuePair<
String,
OdPsPlotStyle> pair in
this) {
104 vals.Add(pair.Value);
111 Add(item.Key, item.Value);
123 if (
this[item.Key] == item.Value) {
136 throw new global::System.ArgumentNullException(
"array");
138 throw new global::System.ArgumentOutOfRangeException(
"arrayIndex",
"Value is less than zero");
140 throw new global::System.ArgumentException(
"Multi dimensional array.",
"array");
141 if (arrayIndex+this.
Count > array.Length)
142 throw new global::System.ArgumentException(
"Number of elements to copy is too large.");
144 global::System.Collections.Generic.IList<
String> keyList =
new global::System.Collections.Generic.List<
String>(this.
Keys);
145 for (
int i = 0; i < keyList.Count; i++) {
146 String currentKey = keyList[i];
147 array.SetValue(
new global::System.Collections.Generic.KeyValuePair<
String,
OdPsPlotStyle>(currentKey,
this[currentKey]), arrayIndex+i);
151 global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<
String,
OdPsPlotStyle>> global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.KeyValuePair<
String,
OdPsPlotStyle>>.GetEnumerator() {
152 return new OdPsPlotStylesMapEnumerator(
this);
155 global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
156 return new OdPsPlotStylesMapEnumerator(
this);
169 global::System.Collections.Generic.IEnumerator<global::System.Collections.Generic.KeyValuePair<String, OdPsPlotStyle>>
172 private global::System.Collections.Generic.IList<
String> keyCollection;
173 private int currentIndex;
174 private object currentObject;
175 private int currentSize;
178 collectionRef = collection;
179 keyCollection =
new global::System.Collections.Generic.List<
String>(collection.
Keys);
181 currentObject =
null;
182 currentSize = collectionRef.
Count;
188 if (currentIndex == -1)
189 throw new global::System.InvalidOperationException(
"Enumeration not started.");
190 if (currentIndex > currentSize - 1)
191 throw new global::System.InvalidOperationException(
"Enumeration finished.");
192 if (currentObject ==
null)
193 throw new global::System.InvalidOperationException(
"Collection modified.");
194 return (global::System.Collections.Generic.KeyValuePair<
String,
OdPsPlotStyle>)currentObject;
199 object global::System.Collections.IEnumerator.Current {
206 int size = collectionRef.
Count;
207 bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
210 String currentKey = keyCollection[currentIndex];
211 currentObject =
new global::System.Collections.Generic.KeyValuePair<
String,
OdPsPlotStyle>(currentKey, collectionRef[currentKey]);
213 currentObject =
null;
220 currentObject =
null;
221 if (collectionRef.
Count != currentSize) {
222 throw new global::System.InvalidOperationException(
"Collection modified.");
228 currentObject =
null;
241 private uint size() {
259 MemoryManager mMan = MemoryManager.GetMemoryManager();
260 MemoryTransaction mTrans = mMan.GetCurrentTransaction();
271 ret = (OdPsPlotStyle)
Teigha.
Core.Helpers.odrxCreateObjectInternalUniversal(typeof(OdPsPlotStyle),ptr,
true);
274 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
278 private void setitem(
String key, OdPsPlotStyle x) {
279 GlobalsPINVOKE.OdPsPlotStylesMap_setitem(swigCPtr, key, OdPsPlotStyle.getCPtr(x));
280 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
300 private global::System.IntPtr create_iterator_begin() {
306 private String get_next_key(global::System.IntPtr swigiterator) {
307 String ret = GlobalsPINVOKE.OdPsPlotStylesMap_get_next_key(swigCPtr, swigiterator);
308 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
312 private void destroy_iterator(global::System.IntPtr swigiterator) {
313 GlobalsPINVOKE.OdPsPlotStylesMap_destroy_iterator(swigCPtr, swigiterator);
314 if (GlobalsPINVOKE.SWIGPendingException.Pending)
throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
static global::System.Exception Retrieve()
static bool OdPsPlotStylesMap_ContainsKey(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static void OdPsPlotStylesMap_Add(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2, HandleRef jarg3)
static IntPtr OdPsPlotStylesMap_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdPsPlotStylesMap_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, [MarshalAs(UnmanagedType.LPWStr)]String jarg2)
static bool OdPsPlotStylesMap_empty(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdPsPlotStylesMap_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint OdPsPlotStylesMap_size(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdPsPlotStylesMap(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdPsPlotStylesMap_create_iterator_begin(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdPsPlotStyle obj)
OdPsPlotStylesMapEnumerator(OdPsPlotStylesMap collection)
global::System.Collections.Generic.KeyValuePair< String, OdPsPlotStyle > Current
OdPsPlotStylesMap(OdPsPlotStylesMap other)
OdPsPlotStylesMap(IntPtr cPtr, bool cMemoryOwn)
void CopyTo(global::System.Collections.Generic.KeyValuePair< String, OdPsPlotStyle >[] array)
virtual void Dispose(bool disposing)
bool Remove(global::System.Collections.Generic.KeyValuePair< String, OdPsPlotStyle > item)
bool ContainsKey(String key)
bool Contains(global::System.Collections.Generic.KeyValuePair< String, OdPsPlotStyle > item)
void Add(String key, OdPsPlotStyle value)
bool TryGetValue(String key, out OdPsPlotStyle value)
global::System.Collections.Generic.ICollection< String > Keys
void Add(global::System.Collections.Generic.KeyValuePair< String, OdPsPlotStyle > item)
static HandleRef getCPtr(OdPsPlotStylesMap obj)
global::System.Collections.Generic.ICollection< OdPsPlotStyle > Values
OdPsPlotStylesMapEnumerator GetEnumerator()
void CopyTo(global::System.Collections.Generic.KeyValuePair< String, OdPsPlotStyle >[] array, int arrayIndex)