Browse Source

ComPDFKit.Tool(Win) - 补充弹出输入框控件名称

liyuxuan 2 months ago
parent
commit
e3d4b57fbf

+ 1 - 0
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.WidgetTool.cs

@@ -163,6 +163,7 @@ namespace ComPDFKit.Tool
                     }
 
                     TextBox textui = new TextBox();
+                    textui.Name = "PdfViewerTextBox";
                     CTextAttribute textAttribute = textWidget.GetTextAttribute();
                     byte transparency = textWidget.GetTransparency();
                     textui.FontSize = textAttribute.FontSize* annotData.CurrentZoom/72D*96D;

+ 1 - 1
Demo/Examples/ComPDFKit.Tool/DrawTool/CreateAnnotTool.cs

@@ -1469,7 +1469,7 @@ namespace ComPDFKit.Tool.DrawTool
                     CPDFFreeTextAnnotation annotFreeText = (cPDFAnnotation as CPDFFreeTextAnnotation);
 
                     TextBox textui = new TextBox();
-
+                    textui.Name = "PdfViewerTextBox";
                     DashedBorder textBorder = new DashedBorder();
                     textBorder.Child = textui;
                     textui.Width = 200;