示例#1
0
 public bool GetArray(int idx, out CGPDFArray array)
 {
     IntPtr ptr;
     var r = CGPDFArrayGetArray (handle, (IntPtr) idx, out ptr);
     if (!r){
         array = null;
         return false;
     }
     array = new CGPDFArray (ptr);
     return true;
 }
示例#2
0
        public bool GetArray(int idx, out CGPDFArray array)
        {
            IntPtr ptr;
            var    r = CGPDFArrayGetArray(handle, (IntPtr)idx, out ptr);

            if (!r)
            {
                array = null;
                return(false);
            }
            array = new CGPDFArray(ptr);
            return(true);
        }
示例#3
0
        public bool GetDictionary(int idx, out CGPDFArray result)
        {
            IntPtr res;
            var    r = CGPDFArrayGetDictionary(handle, (IntPtr)idx, out res);

            if (!r)
            {
                result = null;
                return(false);
            }
            result = new CGPDFArray(res);
            return(true);
        }
示例#4
0
        public bool GetArray(string key, out CGPDFArray array)
        {
            if (key == null)
                throw new ArgumentNullException ("key");

            IntPtr ptr;
            var r = CGPDFDictionaryGetArray (handle, key, out ptr);
            if (!r){
                array = null;
                return false;
            }
            array = new CGPDFArray (ptr);
            return true;
        }
示例#5
0
        public bool GetArray(string key, out CGPDFArray array)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            IntPtr ptr;
            var    r = CGPDFDictionaryGetArray(handle, key, out ptr);

            if (!r)
            {
                array = null;
                return(false);
            }
            array = new CGPDFArray(ptr);
            return(true);
        }
示例#6
0
 public bool GetDictionary(int idx, out CGPDFArray result)
 {
     IntPtr res;
     var r = CGPDFArrayGetDictionary (handle, (IntPtr) idx, out res);
     if (!r){
         result = null;
         return false;
     }
     result = new CGPDFArray (res);
     return true;
 }