public static int getDimensions(GiCoreView coreView, Floats vars, Chars types) { int ret = touchvgcsPINVOKE.EduCmds_getDimensions(GiCoreView.getCPtr(coreView), Floats.getCPtr(vars), Chars.getCPtr(types)); if (touchvgcsPINVOKE.SWIGPendingException.Pending) throw touchvgcsPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual int readString(string name, Chars value) { int ret = touchvgPINVOKE.MgStorageBase_readString(swigCPtr, name, Chars.getCPtr(value)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
internal static HandleRef getCPtr(Chars obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
//! 得到当前图形的各种度量尺寸 public string getDimensions(float[] vars) { Floats v = new Floats(vars.Length); Chars types = new Chars(vars.Length); int n = EduCmds.getDimensions(CoreView, v, types); if (n > 0) { StringBuilder buf = new StringBuilder(n); for (int i = 0; i < n; i++) { buf.Append(v.get(i)); vars[i] = v.get(i); } return buf.ToString(); } return ""; }