hi ,
i have followed your sample code to add a button control to text editor
when the button is clicked , i only want to delete the button & rebind the entire text to editor
is it possible ,if so how ?
please help me
Thanks in Advance
satish
code is :
RadDocument doc = new RadDocument();
Section section = new Section();
doc.Sections.Add(section);
Paragraph paragraph = new Paragraph();
section.Paragraphs.Add(paragraph);
Span span = new Span("Some Text before...");
paragraph.Inlines.Add(span);
Button button = new Button();
button.Name = "id_212";
button.Content = "Test Button";
button.Width = 100;
button.Height = 50;
button.Click +=
(s, a) =>
{
///// MessageBox.Show("Your button was just clicked!");
};
InlineUIContainer container = new InlineUIContainer();
container.UiElement = button;
container.Width = button.Width;
container.Height = button.Height;
paragraph.Inlines.Add(container);
Span span2 = new Span("Some Text after...");
paragraph.Inlines.Add(span2);
editor.Document = doc;