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() !)); }
public bool SetValue(string str, PdfAnnotationKey key) { var nstr = NSString.CreateNative(str); try { return(_SetValue(nstr, key.GetConstant() !)); } finally { NSString.ReleaseNative(nstr); } }
public T GetValue <T> (PdfAnnotationKey key) where T : class, INativeObject { return(Runtime.GetINativeObject <T> (_GetValue(key.GetConstant() !), true)); }