This question is locked. New answers and comments are not allowed.
Hi Iva,
I tried to highlight/select a section which has an annotationmarker (I've created a custom one named SectionAnnotationStart and SectionAnnotationEnd) and clicked Copy. And I then Paste it to the end of the document, but it doesnt include the annotations as part of the pasted section.
I've implemented your code suggestion from this thread in my SectionAnnotationStart class, but still cant get the AnnotationMarkers from "ClipboardEx.GetDocument();". Am I missing something here?
BTW - this is how I'm intercepting the PasteCommand under CommandExecuting event
Thanks,
Selmo
I tried to highlight/select a section which has an annotationmarker (I've created a custom one named SectionAnnotationStart and SectionAnnotationEnd) and clicked Copy. And I then Paste it to the end of the document, but it doesnt include the annotations as part of the pasted section.
I've implemented your code suggestion from this thread in my SectionAnnotationStart class, but still cant get the AnnotationMarkers from "ClipboardEx.GetDocument();". Am I missing something here?
BTW - this is how I'm intercepting the PasteCommand under CommandExecuting event
void
xRadRichTextBox_CommandExecuting(
object
sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
if
(e.Command
is
PasteCommand)
{
DocumentFragment fragment = ClipboardEx.GetDocument();
if
(fragment !=
null
)
{
(sender
as
RadRichTextBox).InsertFragment(fragment);
e.Cancel =
true
;
}
}
}
Thanks,
Selmo