Exception:宽度和高度必须为非负值。

报错信息 1
ArgumentException: 宽度和高度必须为非负值。
--Message: 宽度和高度必须为非负值。
StackTrace:
   在 System.Windows.Rect..ctor(Double x, Double y, Double width, Double height)
   在 ICSharpCode.AvalonEdit.Editing.Caret.CalcCaretRectangle(VisualLine visualLine)
   在 ICSharpCode.AvalonEdit.Editing.Caret.ShowInternal()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.44.22 2026-01-02 17:44 Microsoft Windows NT 10.0.19045.0