This question is locked. New answers and comments are not allowed.
I have a read-only RadRichTextBox control which contains several nested tables. When the user hovers the cursor over the tables an icon appears containing four arrows (presumably it is intended for moving and/or sizing the tables). When the user moves the cursor over the icon it produces the error below.
My first priority is to prevent this error appearing, but I would also like to stop the icon appearing if possible, given that the document is readonly and so the user is not permitted to resize or move any of the tables.
My first priority is to prevent this error appearing, but I would also like to stop the icon appearing if possible, given that the document is readonly and so the user is not permitted to resize or move any of the tables.
Error
Length cannot be less than zero
Parameter name: length
Error Details
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at System.String.Substring(Int32 startIndex, Int32 length)
at Telerik.Windows.Documents.Layout.SpanLayoutBox.BinarySearchSplitIndex(SpanLayoutBox spanBox, Single availableWidth)
at Telerik.Windows.Documents.SpanBoxPositionHandler.MoveToLocation(PointF location)
at Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position, Boolean MoveToNextIfOutOfBox)
at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.GetDocumentPositionFromViewPoint(Point viewPoint)
at Telerik.Windows.Documents.UI.Layers.TableDecorationLayers.TableMovement.TableMovementUILayer.OnMove(MouseEventArgs e)
at Telerik.Windows.Documents.UI.Layers.TableDecorationLayers.TableMovement.TableMovementUILayer.<>c__DisplayClass2.<MouseMove>b__0()
at Telerik.Windows.Documents.Utils.DelayedExecution.ExecuteAction(Boolean asynch)
at Telerik.Windows.Documents.Utils.DelayedExecution.timer_Tick(Object sender, EventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
at System.String.Substring(Int32 startIndex, Int32 length)
at Telerik.Windows.Documents.Layout.SpanLayoutBox.BinarySearchSplitIndex(SpanLayoutBox spanBox, Single availableWidth)
at Telerik.Windows.Documents.SpanBoxPositionHandler.MoveToLocation(PointF location)
at Telerik.Windows.Documents.DocumentPosition.SetPosition(PointF position, Boolean MoveToNextIfOutOfBox)
at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.GetDocumentPositionFromViewPoint(Point viewPoint)
at Telerik.Windows.Documents.UI.Layers.TableDecorationLayers.TableMovement.TableMovementUILayer.OnMove(MouseEventArgs e)
at Telerik.Windows.Documents.UI.Layers.TableDecorationLayers.TableMovement.TableMovementUILayer.<>c__DisplayClass2.<MouseMove>b__0()
at Telerik.Windows.Documents.Utils.DelayedExecution.ExecuteAction(Boolean asynch)
at Telerik.Windows.Documents.Utils.DelayedExecution.timer_Tick(Object sender, EventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)