Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 5
0
 public bool GetDictionary(int idx, out CGPDFDictionary result)
 {
     return(GetDictionary((nint)idx, out result));
 }