RichTextBox Control for Windows Forms Edit rich text content with text formatting options, mail-merge, table, and floating objects, etc. Sections of KetticDocument in RichTextBox in C#.NET
KetticRichTextBox control for Windows Forms provides the Section C# class for the users to separate the content of KetticDocument into sections. The sections are able to be shown on a single page or various different pages. The KetticDocument contains one section in the document and declare all sections merged into one. The following article will demonstrate how to separate the contents of KetticDocument into sections using the Section C# class. Customize Sections of KetticDocument in KetticRichTextBox
The Section of the KetticDocument is able to include only Paragraph and Table elements in the KetticRichTextBox control. There are properties of Section available to the users to customize the layout of the section. In the tutorial below, we will go through the process of adding paragraphs to a section and customizing the section in C# code. Add Paragraphs to a Section of KetticDocument
KetticRichTextBox control provides the Paragraphs collection of the Section for the users to add paragraphs to separate the content of the document. The C# code below shows how to achieve this. Section section = new Section(); Paragraph paragraph = new Paragraph(); section.Blocks.Add(paragraph); this.ketticRichTextBox1.Document.Sections.Add(section);
|