The customers need to convert the position to an integer number representing the offset of the current position from the first position in the document. A method returning the position at a specified offset would be useful as well.
Some voice recognition software (Nuance) is using integer positions as well.
In MS Word, MS RichTextBox and DevExpress RichTextBox, the positions are represented as integer numbers.
Case 1
The editing capabilities of tables should be disabled when in ReadOnlyRange
Case 2,
The Table tools are not hidden when changing the default tab ( see attached video).
Hi Team,
Greetings!
We recently bought your Tool for one our Windows Forms Project work in VS2019 (4.7.2 framework).
There is a need for us to have Emojis inside the editable Textbox / RichTextEditor in Color.
For example, if we paste Emojis inside the text editor, it should retain the color of the Emoji as it is.
Currently if we paste the Emoji inside the text editor, its only pasting the Emoji but losing it's color.
How to retain the color of the Emoji inside the editable Textbox / RichTextEditor ? Is there any property or so we need to set?
The users of our application can paste any kind of Emoji (like inbuilt Windows10 Operating System Emojis etc.,) and there is no limitation for this.
Kindly advice.
with regards,
Krish TS,
Senior Technical Programmer Analyst,
DXC.technology,
India.
In Word, for paragraphs in a list:
1. The bullet/number uses the value of the first line indent
2.1 The text on the first line is aligned according to the left indent when the left indent is smaller than the first line indent (the usual case).
2.2 If the first line indent is smaller than the left indent, the first line aligns with the rest of the text, using the value of the left indent property.
2.3 When there are tab stops, they are used for the position of the text. In RadRichTextBox, the text in the first line always aligns according to the FirstLine indent.
Also, tab stops can be used to position the text after the bullet/number.
Add Paragraph property controlling whether SpacingBefore / SpacingAfter is applied between paragraphs with the same style. In MS Word, the corresponding option is controlled with "Don't add space between paragraphs of the same style" checkbox in the font properties dialog - and the paragraph spacing after will not be applied. In OOXML, it is described with the w:contextualSpacing element. We don't respect this property on import of such files, and the paragraph spacing is bigger. Common use case for this feature is that when list is applied to multiple paragraphs, Paragraph List style is applied to the items, and this style has "Don't add space between paragraphs of the same style" applied, so the vertical spacing between the items is smaller.
When trying to import a document containing bookmark and BookmarkRangeEnd is after the last paragraph, a StackOverflowException is thrown in IntervalNode while trying to rebuild the document cache. (RadDocumentChildrenCache.RebuildTree()). The same could be observed if the bookmark end is last in the header/footer, between table cells in the RadDocument body, or when all paragraphs after the bookmark range end are hidden (with vanish property). Workaround: Detect the problematic annotations and remove them: foreach (var rangeStart in document.EnumerateChildrenOfType<AnnotationRangeStart>()) { if (rangeStart.End == null || rangeStart.End.Parent == null || rangeStart.End.Parent.Parent == null) { //MessageBox.Show("This indicates a problem."); rangeStart.Parent.Children.Remove(rangeStart); } } Note: Until 2017 R2 SP1 release StackOverflowException is thrown, after this release an ArgumentException should be thrown.
Please refer to the attached gif file.
Let's take for instance demo application with its default document, with text "RadRichTextEditor for WinForms" at the beginning in font Calibri of size 28. Suppose the user wants to add A, then empty line, then C in single line, followed by the rest of the document, and to have these three new lines in Times New Roman in size 10.
Currently invalid attribute values, including invalid or empty values in CSS attributes in the 'style' attribute, could cause importing property with incorrect value, or NullReferenceException (the document cannot be imported). Examples: ---------------------------------------------------------- <table width=”*”> <tr> <td>More Random Text</td> </tr> </table> The table is imported with 0 width. Instead the width should not be set. ---------------------------------------------------------- <table style="font-size:;"> <tr> <td>More Random Text</td> </tr> </table> NullReferenceException is thrown. ---------------------------------------------------------- <p style='padding: 3px 3px 3xp 7px;'>test</p>
IndexOutOfRangeException is thrown.
----------------------------------------------------------Workaround: replace the invalid values before import: string importString = html.Replace("font-style: ;", "");
The field result shows the number of pages the current section contains.
The spacing between the letters is too big.
See attached!
When the rtf document contains a table as the one below and the empty declaration is used in the following structure, the document cannot be imported: {\fonttbl {\f0 Verdana;} {\f1 Times New Roman;} {\f2 ;} {\f3 Segoe UI;}}
Add a property that can control whether a table row is allowed to break across pages or not.
Currently unknown/unsupported elements are skipped, which potentially loses text content. Consider adding setting in HtmlImportOptions allowing the phrasing content (text) of these elements to be imported. Sample HTML: <html> <body> <test-test>test-test</test-test> <body/> </html> Browsers visualize it as "test-test", while RadRichTextBox doesn't import anything. MS Word imports such elements as inline elements (just like spans).