Пример #1
0
 public bool GetArray(int idx, out CGPDFArray array)
 {
     IntPtr ptr;
     var r = CGPDFArrayGetArray (handle, idx, out ptr);
     array = r ? new CGPDFArray (ptr) : null;
     return r;
 }
Пример #2
0
        public bool GetArray(int idx, out CGPDFArray array)
        {
            IntPtr ptr;
            var    r = CGPDFArrayGetArray(handle, idx, out ptr);

            array = r ? new CGPDFArray(ptr) : null;
            return(r);
        }
Пример #3
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);

            array = r ? new CGPDFArray(ptr) : null;
            return(r);
        }
Пример #4
0
        public bool TryGetValue(out CGPDFArray value)
        {
            IntPtr ip;

            if (CGPDFObjectGetValue(Handle, CGPDFObjectType.Array, out ip))
            {
                value = new CGPDFArray(ip);
                return(true);
            }
            else
            {
                value = null;
                return(false);
            }
        }
Пример #5
0
        public bool TryPop(out CGPDFArray value)
        {
            IntPtr ip;

            if (CGPDFScannerPopArray(Handle, out ip))
            {
                value = new CGPDFArray(ip);
                return(true);
            }
            else
            {
                value = null;
                return(false);
            }
        }
Пример #6
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);
			array = r ? new CGPDFArray (ptr) : null;
			return r;
		}
Пример #7
0
 public bool TryGetValue(out CGPDFArray value)
 {
     IntPtr ip;
     if (CGPDFObjectGetValue (Handle, CGPDFObjectType.Array, out ip)) {
         value = new CGPDFArray (ip);
         return true;
     } else {
         value = null;
         return false;
     }
 }
Пример #8
0
 public bool TryPop(out CGPDFArray value)
 {
     IntPtr ip;
     if (CGPDFScannerPopArray (Handle, out ip)) {
         value = new CGPDFArray (ip);
         return true;
     } else {
         value = null;
         return false;
     }
 }