Exception:startIndex 不能大于字符串长度。 参数名: startIndex

报错信息 1
ArgumentOutOfRangeException: startIndex 不能大于字符串长度。
参数名: startIndex
--Message: startIndex 不能大于字符串长度。
参数名: startIndex
StackTrace:
   在 System.String.Substring(Int32 startIndex, Int32 length)
   在 __ScriptExecution.__fox1pwh5.Script.<>c__DisplayClass14_1.<CreateNoteWindow>b__4(Object s, RoutedEventArgs e)
   在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   在 System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   在 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.45.5 2026-09-23 14:49 Microsoft Windows NT 10.0.18363.0