123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using ComPDFKitViewer;
- using ComPDFKitViewer.AnnotEvent;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Office.Helper
- {
- /// <summary>
- /// 更新属性
- /// </summary>
- public class UpdateAttributeHelper
- {
- private AnnotAttribEvent annotAttribEvent;
- private AnnotEditEvent annotEditEvent;
- public UpdateAttributeHelper(AnnotAttribEvent Event)
- {
- annotAttribEvent = Event;
- }
- public UpdateAttributeHelper(AnnotEditEvent Event)
- {
- annotEditEvent = Event;
- }
- public void UpdateAttrib(AnnotAttrib attrib, object updateData)
- {
- if (annotAttribEvent != null)
- {
- annotAttribEvent.UpdateAttrib(attrib, updateData);
- }
- if (annotEditEvent != null)
- {
- }
- }
- public void UpdateAnnot()
- {
- if (annotAttribEvent != null)
- {
- annotAttribEvent.UpdateAnnot();
- }
- if (annotEditEvent != null && annotEditEvent.EditAnnotArgs != null)
- {
- annotEditEvent.EditAnnotArgs.UpdateAnnotByEventArgs();
- }
- }
- }
- }
|