Beispiel #1
0
        public bool GetDictionary(int idx, out CGPDFDictionary result)
        {
            IntPtr res;
            var    r = CGPDFArrayGetDictionary(handle, idx, out res);

            result = r ? new CGPDFDictionary(res) : null;
            return(r);
        }
Beispiel #2
0
        public bool GetDictionary(string key, out CGPDFDictionary result)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            IntPtr res;
            var    r = CGPDFDictionaryGetDictionary(handle, key, out res);

            result = r ? new CGPDFDictionary(res) : null;
            return(r);
        }
Beispiel #3
0
        public bool TryGetValue(out CGPDFDictionary value)
        {
            IntPtr ip;

            if (CGPDFObjectGetValue(Handle, CGPDFObjectType.Dictionary, out ip))
            {
                value = new CGPDFDictionary(ip);
                return(true);
            }
            else
            {
                value = null;
                return(false);
            }
        }
Beispiel #4
0
        public bool TryPop(out CGPDFDictionary value)
        {
            IntPtr ip;

            if (CGPDFScannerPopDictionary(Handle, out ip))
            {
                value = new CGPDFDictionary(ip);
                return(true);
            }
            else
            {
                value = null;
                return(false);
            }
        }
Beispiel #5
0
		public bool GetDictionary (string key, out CGPDFDictionary result)
		{
			if (key == null)
				throw new ArgumentNullException ("key");
			IntPtr res;
			var r = CGPDFDictionaryGetDictionary (handle, key, out res);
			result = r ? new CGPDFDictionary (res) : null;
			return r;
		}
Beispiel #6
0
 public bool TryGetValue(out CGPDFDictionary value)
 {
     IntPtr ip;
     if (CGPDFObjectGetValue (Handle, CGPDFObjectType.Dictionary, out ip)) {
         value = new CGPDFDictionary (ip);
         return true;
     } else {
         value = null;
         return false;
     }
 }
Beispiel #7
0
 public bool TryPop(out CGPDFDictionary value)
 {
     IntPtr ip;
     if (CGPDFScannerPopDictionary (Handle, out ip)) {
         value = new CGPDFDictionary (ip);
         return true;
     } else {
         value = null;
         return false;
     }
 }
Beispiel #8
0
 public bool GetDictionary(int idx, out CGPDFDictionary result)
 {
     IntPtr res;
     var r = CGPDFArrayGetDictionary (handle, idx, out res);
     result = r ? new CGPDFDictionary (res) : null;
     return r;
 }