예제 #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);
        }
예제 #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);
        }
예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #5
0
 public bool GetDictionary(int idx, out CGPDFDictionary result)
 {
     return(GetDictionary((nint)idx, out result));
 }