示例#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(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);
        }
示例#3
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);
            }
        }
示例#4
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);
            }
        }
示例#5
0
 public bool GetArray(int idx, out CGPDFArray array)
 {
     return(GetArray((nint)idx, out array));
 }