- Online Barcode Generator
- How To
- Buy Now
Display Tables in Document of RichTextBox in C#.NET
KetticRichTextBox control allows the users to add tables to the document in their Windows Forms applications through the C# API included in the component. The KetticRichTextBox table consists of three C# classes, Table, TableRow and TableCell. The Table C# class is used to define the table. The TableRow C# class is used to define the child object of the KetticRichTextBox table. The TableCell C# class is used to define the child object of the TableRow and accepts block elements as child object.
Adding/Removing Table using C# API of KetticRichTextBox
KetticRichTextBox offers a rich C# API of table for the users of the control to add and remove tables that are displayed in the KetticDocument. The users can connect the methods included in the C# API with a user interface to execute user interaction with the user interface. The following are the methods available within the C# API of KetticRichTextBox.
In addition, the TableCell object of the KetticRichTextBox contains the RowSpan and ColumnSpan properties for the users to span cells in columns and rows and LayoutMode property for the users to specify the layout mode for the table of KetticDocument. The LayoutMode property includes two valid values, Fixed and AutoFit. The Fixed value assigns the table width to equal to the property, PrefferedWidth and the AutoFit property assigns the table to fit to the entire space available in the horizontal direction.
Create a Table through UI in KetticDocument
KetticRichTextBox .NET component provides the AddTableDialog for the users to insert a table to KetticDocument. To use the dialog, we should call the DisplayAddTableDialog() method in KetticRichTextBox control.
Format a Table through C# API of KetticRichTextBox at Runtime
KetticRichTextBox offers a rich C# API of table for the users of the control to customize tables that are shown in the KetticDocument. The following are the methods for customizing tables included in the C# API of KetticRichTextBox.
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls