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)