Hi, currently i'm trying to use rich text box control (Telerik version 2011.2.712.1040) which is great, but i need one specific feature and not sure if its possible. I need support paragraph type which is internal term in our project, this means that our values which are richtext format should be divided into paragraphs (this is no problem) but paragraphs can have different types. For example:
lets say we some sample text in rich text box:
First paragraph
Second paragraph
Third paragraph
after:
Value field is:
Also what i found allready i can identify which paragraph is currently "active" (in which paragraph is caret position):
So the main question is is it possible to enrich Paragraph elements in rich text box value (pasted before) with smth like this:
Thanks!
lets say we some sample text in rich text box:
First paragraph
Second paragraph
Third paragraph
after:
var provider =
new
XamlFormatProvider();
this
.Value = provider.Export(
this
.editor.Document);
Value field is:
<
t:RadDocument
xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:t=\"clr-namespace:Telerik.Windows.Documents.Model;
assembly
=
Telerik
.Windows.Documents\" version=\"1.1\" DefaultPageLayoutSettings=\"816,1056\" LayoutMode=\"Flow\" PageViewMargin=\"0,0\" ParagraphDefaultSpacingAfter=\"0\" SectionDefaultPageMargin=\"6,6,6,6\">
<
t:Section
>
<
t:Paragraph
>
<
t:Span
FontFamily=\"Verdana\" FontSize=\"16\" Text=\"First paragraph\" UnderlineColor=\"#FF000000\" UnderlineDecoration=\"None\" FontWeight=\"Normal\" FontStyle=\"Normal\" />
</
t:Paragraph
>
<
t:Paragraph
>
<
t:Span
FontFamily=\"Verdana\" FontSize=\"16\" Text=\"Second paragraph\" UnderlineColor=\"#FF000000\" UnderlineDecoration=\"None\" FontWeight=\"Normal\" FontStyle=\"Normal\" />
</
t:Paragraph
>
<
t:Paragraph
>
<
t:Span
FontFamily=\"Verdana\" FontSize=\"16\" Text=\"Third paragraph \" UnderlineColor=\"#FF000000\" UnderlineDecoration=\"None\" FontWeight=\"Normal\" FontStyle=\"Normal\" />
</
t:Paragraph
>
</
t:Section
>
</
t:RadDocument
>
Also what i found allready i can identify which paragraph is currently "active" (in which paragraph is caret position):
this
.editor.Document.CaretPosition.GetCurrentParagraphBox().ChildIndex
So the main question is is it possible to enrich Paragraph elements in rich text box value (pasted before) with smth like this:
<
t:Paragraph
Type="Type1">
?Thanks!