Quellcode durchsuchen

compdfkit(win) - 添加注释刷新

liuaoran vor 10 Monaten
Ursprung
Commit
9a7ec5e712

+ 3 - 0
Demo/Examples/Compdfkit_Tools/Annotation/AnnotationControl/AnnotationControl.xaml.cs

@@ -465,6 +465,8 @@ baseWidget.GetAnnotData().Annot);
                 PDFViewControl.PDFViewTool.GetCPDFViewer().UndoManager?.Undo();
                 PDFViewControl.PDFToolManager.ClearSelect();
                 PDFViewControl.PDFViewTool.GetCPDFViewer().UpdateAnnotFrame();
+                (BotaContainer.Child as CPDFBOTABarControl).LoadAnnotationList();
+
             }
         }
 
@@ -475,6 +477,7 @@ baseWidget.GetAnnotData().Annot);
                 PDFViewControl.PDFViewTool.GetCPDFViewer().UndoManager?.Redo();
                 PDFViewControl.PDFToolManager.ClearSelect();
                 PDFViewControl.PDFViewTool.GetCPDFViewer().UpdateAnnotFrame();
+                (BotaContainer.Child as CPDFBOTABarControl).LoadAnnotationList();
             }
         }
 

+ 1 - 3
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs

@@ -369,9 +369,7 @@ namespace Compdfkit_Tools.PDFControl
 
                         byte[] FontColor = new byte[] { freeTextData.BorderColor.R, freeTextData.BorderColor.G, freeTextData.BorderColor.B };
                         (annotHandlerEventArgs as FreeTextParam).FontColor = FontColor;
-                        (annotHandlerEventArgs as FreeTextParam).FontSize = freeTextData.FontSize;
-                        (annotHandlerEventArgs as FreeTextParam).LineWidth = 1;
-                        (annotHandlerEventArgs as FreeTextParam).LineColor = new byte[3] { 0, 0, 0 };
+                        (annotHandlerEventArgs as FreeTextParam).FontSize = freeTextData.FontSize; 
 
                         string postScriptName = string.Empty;
                         CPDFFont.GetPostScriptName(pdfFreeTextUI.CPDFFontControl.FontFamilyValue, pdfFreeTextUI.CPDFFontControl.FontStyleValue, ref postScriptName);