RadRichTextBox
Breaking Changes:
- RadRichTextBox
- Obsolete Members
- All commands are now accessible through Commands property, eg: radRichTextBox.Commands.PrintCommand instead of radRichTextBox.PrintCommand
- public void SetText(string text) - Use Telerik.Windows.Documents.FormatProviders.Txt.TxtFormatProvider instead of this method
- public void ToggleList(bool shouldAddToList, DocumentListBase defaultList) - Use ChangeListType method instead
- public void ChangeSectionMagin(Padding newSectionMargin) - Use ChangeSectionMargin method instead
- Removed Members
- public Void UpdateEditorLayout(Boolean, Boolean)
- public Type GetDocumentEditorPresenterTypeForDocument(RadDocument)
- protected Void TrackPreviousStyles()
- ClipboardEx
- Removed Members
- public Void SetDocument(IList) - changed to public static void SetDocument(DocumentFragment document)
- public IList GetDocument() - changed to public static DocumentFragment GetDocument()
- RadDocument
- Obsolete Members
- public void SetText(string text) - Use Telerik.Windows.Documents.FormatProviders.Txt.TxtFormatProvider instead of this method
- public void InsertAtCaretPosition(string text, Span selectedSpanStyle) - Use Insert(string text, StyleDefinition style) of RadDocument
- public void DeleteAtDocumentPosition(DocumentPosition documentPosition, bool deletePrevious) - Use Delete method of RadDocument
- Removed Members
- protected Void OnStructureChangeCompleted()
- public Boolean ExecuteCommand(CommandBase, DocumentCommandContext)
- public Boolean ExecuteUndoableCommand(UndoableCommandBase, DocumentCommandContext)
- protected Void CallUpdateDocumentLayout()
- public Void InsertDocumentElementListAtCaretPosition(IList) - changed to public void InsertFragment(DocumentFragment fragment)
- DocumentSelection
- Removed Members
- public IList CopySelectedDocumentElements() - changed to public DocumentFragment CopySelectedDocumentElements()
- public IList CopySelectedDocumentElements(SelectionRange) - public DocumentFragment CopySelectedDocumentElements(SelectionRange range)
- DocumentPosition
- Removed Members
- public boolean MoveToPreviouisWordStart() - changed public boolean MoveToPreviousWordStart()
- DocumentElement
- Removed Members
- public InlineCollection Inlines { get; } - currently only Paragraph class has inlines
- IDocumentFormatProvider
- New Methods
- RadDocument Import(byte[] input);
- byte[] Export(RadDocument document);NOTE: The easiest way to fix this breaking change is to inherit from the newly introduced base class DocumentFormatProviderBase.
- Telerik.Windows.Documents.UI.Ruler.RulerControl-The whole control is obsolete. Use Telerik.Windows.Controls.RichTextBoxUI.DocumentRuler control from the Telerik.Windows.Controls.RichTextBoxUI assembly instead
- ToggleCommandBase Removed Methods-public StylePropertyChangedEventArgs GetEventArgs() - this method is now internal
- PrintMode Obsolete Members-HtmlPreview - This value will be removed in the next versions. Use PrintPreview method of RadRichTextBox
- RichtTextBoxCommandSLBase - renamed to RichTextBoxCommandBase
What’s New:
What’s Fixed and Improved :
- Generally Revised, cleaned and improved API
- API for Zoom-In/Out in Print-Layout view-http://demos.telerik.com/silverlight/#RichTextBox/MSWord
- Major changes in APIs of RadRichTextBox and RadDocument. Those APIs are now synchronized, so that now all manipulations to document can be performed trough commands of RadRichTextBox
- Commands of RadRichTextBox are improved internally, including some bug fixes in their behavior
- Document commands are removed from the public API. Now there are only one set of commands - RichTextCommandBase hierarchy. Those commands are simpler for use, and implements standard interface ICommand
- Support for empty container document elements - sections, paragraphs, document
- Support for mailto: links in the "Insert Hyperlink" dialog
- Fixed issue when selecting links from right to left
- Added properties of RadRichTextBox to set scrollbars visibility
- Fixed some issues with RadRichTextBox stealing focus from other controls
- Fixed issue with loading images from HTML documents, without explicitly set width and height
- Fixed issue with ColorPickers for font color and highlighting color in RichTextBoxRibbonUI not opening first time