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 DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlGet Started in C#RichTextBox - SettingsDocument ElementsContentsSectionParagraphSpanHyperlinkInline ImageTableBookmarksRichTextBox - FeaturesLayout ModesSelectionSearchPositionRead OnlyFormat APIImport & ExportImport & Export - SettingsHTML SupportSpell CheckKeyboard SupportWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |