C# Text Editing in Text Box Control
The Kettic Text Box Control are build for .NET UI designers to retrieve the input string that are typed by users or show the text in the text box control and display multiple lines in C#, wrap text to fit the text box size in C#, add basic formatting in C#, apply themes in C#. To edit text in Text Box C# control, it uses the edition point to adjust the caret position and selection. When the Text Box control is focused, the editing position will be visible.
C# Code to Edit Text in Text Box
If developers need to add text in C# code to Text Box, they may need to use the Add method at the specific location. The sample below adds text to the location that is controlled by the SelectBegin property. The added text will take place the chosen text when the value of SelectWidth property is larger than 0.
Furthermore, if developers need to add text at the end content of the Kettic Text Box Control, the AppendText method is necessary to achieve this.
To delete the chosen text or characters at the caret position in the Text Box control, we need to use the Delete method to achieve this.
When we are performing the text editing, the TextChange and TextChanged events will be raised. Or else, we can prevent the operation via subscribing to the TextChange event
|
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 Control AutoCompleteBoxBox Get Started in C#Text EditingModesFormat BlocksCustom BlocksEditor Browse EditorEditor Color BoxEditor Date Time PickerGet Started in C#C# PropertiesEditor MaskedEditBoxGet Started in C#C# PropertyEditor TextBoxGet Started in C#Add Buttons in C#Editor TextBoxControlGet Started in C#Caret Position and SelectionText EditingAuto CompleteFormat BlocksCustom BlocksEditor Time PickerGet Started in C#Time Picker - PropertiesTime Picker - CustomizationTime Picker - LocalizationForms 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 ControlWinForms 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 |