Positioning in RichTextBox in C#.NET
KetticRichTextBox control provides the positioning feature for the developers to customize the navigations in the document. This feature is able to position the element of a document at a specific part and track the movement of the caret to manage the selection in the document. The KetticRichTextBox control contains the DocumentPosition C# class for the developers to implement the positioning functionality and set the text selection in document.
Positioning Methods of KetticRichTextBox
KetticRichTextBox WinForms control contains various methods within the DocumentPosition C# class for the developers to set the positioning in the document.
The DocumentPosition C# class also allows the users to customize the operators of equality and comparison as they define the position before or after another one in the document. In addition, this control also allows the developers to manage the caret position for a particular KetticDocument via accessing the CaretPosition property or creating a new instance of the DocumentPosition C# class. Setting of CaretPosition Property of DocumentPosition
The following is the C# code sample that shows how to set the CaretPosition property of the current word.
DocumentPosition C# Class of KetticRichTextBox Component
The C# code snippet below demonstrates how to create an instance of the DocumentPosition C# class through accessing the CaretPostion property.
|
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 |