This question is locked. New answers and comments are not allowed.
How do I remove components ImageInline from a RadRichTextBox?
I made the following function to do that, but it doesn't work.
Can anyone provide some insight into this question? please...
I made the following function to do that, but it doesn't work.
private static void removeImages(DocumentElementCollection children) { if (children.Count == 0) return; var layoutBox = children.First; var docElement = layoutBox.AssociatedDocumentElement; while (docElement != null) { docElement.Children.RemoveAll(element => element.GetType() == typeof(ImageInline)); removeImages(docElement.Children); docElement = docElement.NextSibling; } }