Пример #1
0
        public bool SetValue <T> (T value, PdfAnnotationKey key) where T : class, INativeObject
        {
            if (value == null)
            {
                ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(value));
            }

            return(_SetValue(value.Handle, key.GetConstant() !));
        }
Пример #2
0
        public bool SetValue(string str, PdfAnnotationKey key)
        {
            var nstr = NSString.CreateNative(str);

            try {
                return(_SetValue(nstr, key.GetConstant() !));
            } finally {
                NSString.ReleaseNative(nstr);
            }
        }
Пример #3
0
 public T GetValue <T> (PdfAnnotationKey key) where T : class, INativeObject
 {
     return(Runtime.GetINativeObject <T> (_GetValue(key.GetConstant() !), true));
 }