Inheritance: IDisposable
Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 internal static HandleRef getCPtr(Chars obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #4
0
        //! 得到当前图形的各种度量尺寸
        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 "";
        }