I have a richtextbox and I want each section has its own header. In the following code I have set the header but all the sections have the same header.
I have three question
1) How can I have different header for each section.
2) How can I have access to the selected section?
3) How can I access to other sections. Because there is no index for collection sections in the Document.
I will appreciate if someone answers. Thanks in advance.
dd.Section section = new dd.Section();
dd.Paragraph paragraph = new dd.Paragraph();
dd.Span span = new dd.Span(this.txtHeader.Text);
dd.RadDocument document = new dd.RadDocument();
dd.Header header = new dd.Header();
header.Body = document;
this.radRichTextBox.UpdateHeader(this.radRichTextBox.Document.Sections.First, dd.HeaderFooterType.Default, header);