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 Design
WinForms UI Controls