Rich Textbox Control Properties in VB.NET
What are the properties of rich textbox control in VB.NET?
Explanation
Rich TextBox Properties
Following table lists the Properties, Methods, Events used commonly with the
Rich TextBox Control in Visual Basic.net 2008.
Properties:
Properties |
Description |
AutoSize |
Property gets or sets the value specifying to change the rich text box automatically as the font changes. |
BackColor |
Property used to Get or set background color for the control. |
AutoWordSelection |
Property used to set or get a value specifying automatic word selection. |
CanRedo |
Property to used to indicate that any actions can be reapplied. |
CanUndo |
Property to used to undo any previous actions. |
HideSelection |
Property used to set or get value specify a text should stay highlighted when control loses focus. |
MaxLength |
Property used to set or get the maximum number of a line a user can type into a rich text box. |
Multiline |
Property used to set or get a value specifying multiline input for the control. |
ScrollBars |
Property used to set or get the kind of scroll bar to be used. |
SelectedText |
Property used to set or get the selected text within the control. |
SelectionColor |
Property used to set or get color for the selected text. |
SelectionLength |
Property used to set or get the number of characters selected in the control. |
SelectionFont |
Property used to set or get the font for the selected text. |
TextLength |
Property used to set or get the length of text in the control. |
Text |
Property used to set or get the current text in the control. |
Methods:
Method |
Description |
Appends |
Method used to append text to current text of the control. |
CanPaste |
Method determines if the infromation can be pasted from a clipboard. |
Clear |
Method used to clear text from the control. |
Find |
Method used to search a text inside the control. |
GetLineFromCharIndex |
Method used to get the line number from the specified character position. |
GetPositionFromCharIndex |
Method used to get the location within the control at the specified character index. |
LoadFile |
Methods used to load the contents of a file into the control. |
Redo |
Method to reapply the last operation. |
Select |
Methods used to select the text within the control. |
Undo |
Method to undo the last edit operation. |
Events:
Events |
Description |
Click |
Triggered when the control is clicked. |
LinkClicked |
Triggered when the user clicks on the link within the text. |
ModifiedChanged |
Triggered when the value of the Modified property is changed. |
ReadOnlyChanged |
Triggered when the value of the ReadOnly property is changed. |
SelectionChanged |
Triggered when the value of the Selection property is changed. |
VScroll |
Triggered when the vertical scroll bars are clicked. |