ClassRadTextBoxBase
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[DefaultBindingProperty("Text")]
public abstract class RadTextBoxBase : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadTextBoxBase
Implements:
Inherited Members
Constructors
RadTextBoxBase()
Represents RadTextBoxBase constructor
Declaration
public RadTextBoxBase()
Properties
AcceptsReturn
Gets or sets a value indicating whether pressing ENTER in a multiline RadTextBox control creates a new line of text in the control or activates the default button for the form.
AcceptsTab
Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.
AutoCompleteCustomSource
Declaration
[Browsable(true)]
public AutoCompleteStringCollection AutoCompleteCustomSource { get; set; }
Property Value
AutoCompleteMode
Declaration
[Browsable(true)]
public AutoCompleteMode AutoCompleteMode { get; set; }
Property Value
AutoCompleteSource
Declaration
[Browsable(true)]
[TypeConverter(typeof(TextBoxAutoCompleteSourceConverter))]
public AutoCompleteSource AutoCompleteSource { get; set; }
Property Value
AutoSize
Gets or sets whether the edit control is auto-sized. Note that auto-size functionality does not work when MultiLine property is true.
Declaration
[Browsable(true)]
public override bool AutoSize { get; set; }
Property Value
Overrides
CanUndo
Gets value indicating whether undo is allowed.
CharacterCasing
Gets or sets a value indicating whether the RadTextBox control modifies the case of characters as they are typed.
Declaration
public CharacterCasing CharacterCasing { get; set; }
Property Value
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
Font
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl03_LabelAbstract">Gets or sets
the font of the text displayed by the control.
HideSelection
Gets or sets a value indicating whether the selected text remains highlighted even when the RadTextBox has lost the focus.
Lines
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
the lines of text in multiline configurations.
MaxLength
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
the maximum number of characters allowed in the text box.
Modified
Gets or sets a value indicating whether the RadTextBox control has been modified by the user since the control was created or since its contents were last set.
Multiline
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
a value indicating whether this is a multiline TextBox control. When the value is true, the AutoSize property is automatically changed to false and the user needs to take care of the height of this control.
NullText
Gets or sets the text that is displayed when the ComboBox contains a null reference.
PasswordChar
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
the character used to mask characters of a password in a single-line TextBox control.
ReadOnly
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
a value indicating whether the contents of the TextBox control can be changed.
ScrollBars
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
which scroll bars should appear in a multiline TextBox control.
SelectedText
Gets or sets a value indicating the currently selected text in the control.
SelectionLength
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
the number of characters selected in the text box.
SelectionStart
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
the starting point of text selected in the text box.
ShortcutsEnabled
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets
a value indicating whether the defined shortcuts are enabled.
ShowNullText
Gets or sets a value indicating whether the null text will be shown when the control is focused and the text is empty.
Text
Gets or sets the displayed text.
Declaration
public override string Text { get; set; }
Property Value
Overrides
TextAlign
Gets or sets how text is aligned in a TextBox control.
Declaration
public virtual HorizontalAlignment TextAlign { get; set; }
Property Value
TextLength
Gets the length of the text in the control.
Methods
AppendText(string)
Appends text to the current text.
ClearUndo()
Undo to the previous text value before clear invocation.
Declaration
public void ClearUndo()
DeselectAll()
Deselects the text in the cotrol.
Declaration
public void DeselectAll()
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
Overrides
Focus()
Sets input focus to the control.
Declaration
public bool Focus()
Returns
true if the input focus request was successful; otherwise, false.
GetCharFromPosition(Point)
Retrieves the character that is closest to the specified location within the control.
GetCharIndexFromPosition(Point)
Retrieves the index of the character nearest to the specified location.
GetFirstCharIndexFromLine(int)
Retrieves the index of the first character of a given line.
GetFirstCharIndexOfCurrentLine()
Retrieves the index of the first character of the current line. This method is not supported by MaskedTextBox.
GetLineFromCharIndex(int)
Retrieves the line number from the specified character position within the text of the control.
GetPositionFromCharIndex(int)
Retrieves the location within the control at the specified character index.
InitializeTextElement()
Initializes textbox's children
Declaration
protected abstract void InitializeTextElement()
OnAcceptsTabChanged(EventArgs)
Raises the AcceptsTabChanged event.
Declaration
protected virtual void OnAcceptsTabChanged(EventArgs e)
Parameters
e
OnHideSelectionChanged(EventArgs)
Raises the HideSelectionChanged event.
Declaration
protected virtual void OnHideSelectionChanged(EventArgs e)
Parameters
e
OnLostFocus(EventArgs)
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
e
Overrides
OnModifiedChanged(EventArgs)
Raises the ModifiedChanged event.
Declaration
protected virtual void OnModifiedChanged(EventArgs e)
Parameters
e
OnMultilineChanged(EventArgs)
Raises the MultilineChanged event.
Declaration
protected virtual void OnMultilineChanged(EventArgs e)
Parameters
e
OnReadOnlyChanged(EventArgs)
Raises the ReadOnlyChanged event.
Declaration
protected virtual void OnReadOnlyChanged(EventArgs e)
Parameters
e
OnTextAlignChanged(EventArgs)
Raises the TextAlignChanged event.
Declaration
protected virtual void OnTextAlignChanged(EventArgs e)
Parameters
e
OnTextChanging(TextChangingEventArgs)
Raises the TextChanging event.
Declaration
protected virtual void OnTextChanging(TextChangingEventArgs e)
Parameters
e
Paste(string)
Pastes the string parameter to the clipboard.
ProcessAutoSizeChanged(bool)
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
value
Overrides
ScrollToCaret()
Scrolls the contents of the control to the current caret position.
Declaration
public void ScrollToCaret()
Select(int, int)
Selects the text in the TextBox from the start position inclusive to the end position exclusive.
Undo()
Undoes the last edit operation in the text box.
Declaration
public void Undo()
UnwireHostEvents()
Declaration
protected virtual void UnwireHostEvents()
WireHostEvents()
Declaration
protected virtual void WireHostEvents()
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message m)
Parameters
m
Overrides
Events
AcceptsTabChanged
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when
the value of the AcceptsTab property has changed.
Declaration
[Browsable(true)]
public event EventHandler AcceptsTabChanged
Event Value
HideSelectionChanged
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when
the value of the HideSelection property changes.
Declaration
[Browsable(true)]
public event EventHandler HideSelectionChanged
Event Value
ModifiedChanged
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when
the value of the Modified property has changed.
Declaration
[Browsable(true)]
public event EventHandler ModifiedChanged
Event Value
MultilineChanged
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl02_LabelAbstract">Occurs when
the value of the Multiline property has changed.
Declaration
[Browsable(true)]
public event EventHandler MultilineChanged
Event Value
ReadOnlyChanged
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when
the ReadOnly property changes.
Declaration
[Browsable(true)]
public event EventHandler ReadOnlyChanged
Event Value
TextAlignChanged
<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl03_LabelAbstract">Occurs when
the value of the TextAlign property has changed.
Declaration
[Browsable(true)]
public event EventHandler TextAlignChanged
Event Value
TextChanging
Occurs when text is being changed.
Declaration
[Browsable(true)]
public event TextChangingEventHandler TextChanging
Event Value