Beispiel #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;
 }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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;
		}
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }