Click or drag to resize
RadTextBoxControl Class
Enables the user to enter text, and provides multiline editing
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      System.Windows.FormsControl
        System.Windows.FormsScrollableControl
          Telerik.WinControlsRadControl
            Telerik.WinControls.UIRadTextBoxControl
              Telerik.WinControls.UIRadAutoCompleteBox

Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI (in Telerik.WinControls.UI.dll) Version: 2018.3.1016.40 (2018.3.1016.40)
Syntax
[DefaultPropertyAttribute("Text")]
[TelerikToolboxCategoryAttribute("Editors")]
[DefaultEventAttribute("TextChanged")]
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)]
[DefaultBindingPropertyAttribute("Text")]
[ComVisibleAttribute(true)]
public class RadTextBoxControl : RadControl

The RadTextBoxControl type exposes the following members.

Constructors
  NameDescription
Public methodRadTextBoxControl
Initializes a new instance of the RadTextBoxControl class.
Top
Properties
  NameDescription
Public propertyAcceptsReturn
Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form.
Public propertyAcceptsTab
Gets or sets a value indicating whether pressing the TAB key in a multiline text box element types a TAB character in the element instead of moving the focus to the next element in the tab order.
Public propertyAccessibilityRequested
Gets or sets a value indicating whether the CodedUI Tests functionality is requested from external program such a Narrator.
(Inherited from RadControl.)
Public propertyAllowShowFocusCues
Indicates focus cues display, when available, based on the corresponding control type and the current UI state.
(Inherited from RadControl.)
Public propertyAnalyticsName
Gets or sets the Analytics Name associated with this control. By default the Control Name property is logged. If you want to customize the information which will be logged for this control set this property to a preferred value.
(Inherited from RadControl.)
Public propertyAutoCompleteDataSource
Gets or sets a value specifying the source of complete items used for automatic completion.
Public propertyAutoCompleteDisplayMember
Gets or sets the auto complete display member.
Public propertyAutoCompleteItems
Gets a value specifying the complete items used for automatic completion.
Public propertyAutoCompleteMode
Gets or sets an option that controls how automatic completion works for the TextBox.
Public propertyAutoSize

Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

(Inherited from RadControl.)
Public propertyBackColor
Gets or sets the BackColor of the control. This is actually the BackColor property of the root element.
(Inherited from RadControl.)
Public propertyBehavior
Gets the input behavior for the control.
(Inherited from RadControl.)
Public propertyCaretIndex
Gets or sets the caret position.
Public propertyCausesValidation
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
(Inherited from RadControl.)
Public propertyCharacterCasing
Gets or sets whether the TextBox control modifies the case of characters as they are typed.
Public propertyCommandBindings (Inherited from RadControl.)
Protected propertyDefaultSize (Overrides ControlDefaultSize.)
Public propertyDropDownMaxSize
Gets or sets the size of the drop down max.
Public propertyDropDownMinSize
Gets or sets the size of the drop down min.
Public propertyElementTree (Inherited from RadControl.)
Public propertyEnableAnalytics
Gets or sets a value indicating whether the Analytics functionality is enabled or disabled for this control.
(Inherited from RadControl.)
Public propertyEnableCodedUITests
Gets or sets a value indicating whether the CodedUI Tests functionality is enabled.
(Inherited from RadControl.)
Public propertyEnableGestures
Gets or sets a value indicating whether the Gestures functionality is enabled.
(Inherited from RadControl.)
Public propertyEnableKeyMap
Gets or sets whether Key Map (Office 2007 like accelerator keys map) is used for this specific control. Currently this option is implemented for the RadRibbonBar control only.
(Inherited from RadControl.)
Public propertyEnableRadAccessibilityObjects
Gets or sets a value indicating whether the RadControls Accessible custom object is enabled.
(Inherited from RadControl.)
Public propertyEnableTheming
Gets or sets value indicating whether the control is styled through theme
(Inherited from RadControl.)
Public propertyFocusable (Inherited from RadControl.)
Public propertyFocusedElement (Inherited from RadControl.)
Public propertyFont
Gets or sets the Font of the control. This is actually the Font property of the root element.
(Inherited from RadControl.)
Public propertyForeColor
Gets or sets the ForeColor of the control. This is actually the ForeColor property of the root element.
(Inherited from RadControl.)
Public propertyHideSelection
Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the element loses focus.
Public propertyHorizontalScrollBarState
Gets or sets when the horizontal scroll bar should appear in a multiline TextBox.
Public propertyImageList (Overrides RadControlImageList.)
Public propertyImageScalingSize
Gets or sets the image scaling size.
(Inherited from RadControl.)
Public propertyIsDesignMode (Inherited from RadControl.)
Public propertyIsDisplayed
Determines whether the control is currently displayed on the screen.
(Inherited from RadControl.)
Public propertyIsInitializing (Inherited from RadControl.)
Public propertyIsLoaded
Determines whether the control is properly loaded.
(Inherited from RadControl.)
Public propertyIsReadOnly
Gets or sets a value indicating whether text in the text box is read-only.
Public propertyIsReadOnlyCaretVisible
Gets or sets a value indicating whether the caret is visible in read only mode.
Public propertyLayoutManager (Inherited from RadControl.)
Public propertyLines
Gets or sets the lines of text in a text box control.
Public propertyListElement
Gets the auto-complete list element.
Public propertyMaxDropDownItemCount
Gets or sets the max count of visible items in auto-complete drop down
Public propertyMaximumSize
Gets or sets the size that is the upper limit that GetPreferredSize can specify.
(Inherited from RadControl.)
Public propertyMaxLength
Gets or sets the maximum number of characters the user can type or paste into the text box element.
Public propertyMinimumSize
Gets or sets the size that is the lower limit that GetPreferredSize can specify
(Inherited from RadControl.)
Public propertyMultiline
Gets or sets a value indicating whether this is a multiline text box.
Public propertyNullText
Gets or sets the prompt text that is displayed when the text box contains no text.
Public propertyNullTextColor
Gets or sets the color of the null text.
Public propertyPadding
Gets or sets padding within the control.
(Inherited from RadControl.)
Public propertyPasswordChar
Gets or sets the character used to mask characters of a password in a single-line
Public propertyRadContextMenu
Gets or sets the shortcut menu associated with the control.
Public propertyRootElement
Gets the RootElement of the control.
(Inherited from RadControl.)
Public propertySelectedText
Gets or sets a value indicating the currently selected text in the text box.
Public propertySelectionColor
Gets or sets the color of the selection.
Public propertySelectionLength
Gets or sets the number of characters selected in the text box.
Public propertySelectionOpacity
Gets or sets the selection opacity.
Public propertySelectionStart
Gets or sets the starting point of text selected in the text box.
Public propertyShowClearButton
Gets or sets a value indicating whether the clear button is shown.
Public propertyShowItemToolTips
Gets or sets a value indicating whether ToolTips are shown for the RadItem objects contained in the RadControl.
(Inherited from RadControl.)
Public propertyShowNullText
Gets or sets a value indicating whether the null text will be shown when the control is focused and the text is empty.
Public propertySite (Inherited from RadControl.)
Public propertySmallImageList
Gets or sets the SmallImageList that contains the small images which are displayed when there's not enough space.
(Inherited from RadControl.)
Public propertySmallImageScalingSize
Gets or sets the small image scaling size.
(Inherited from RadControl.)
Public propertyText
Gets or sets the current text in the text box element.
(Overrides RadControlText.)
Public propertyTextAlign
Gets or sets how the text is horizontally aligned in the element.
Public propertyTextBoxElement
Gets the associated text box element.
Public propertyTextLength
Gets the length of text in the element.
Public propertyThemeClassName
Gets or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.
(Inherited from RadControl.)
Public propertyThemeName
Gets or sets control's preferred theme name. Themes are stored and retrieved using APIs of ThemeResolutionService.
(Inherited from RadControl.)
Public propertyUseCompatibleTextRendering
Determines whether to use compatible text rendering engine (GDI+) or not (GDI).
(Inherited from RadControl.)
Public propertyUseSystemPasswordChar
Gets or sets a value indicating whether the text in view should appear as the default password character.
Protected propertyValidationCancel (Inherited from RadControl.)
Public propertyVerticalScrollBarState
Gets or sets when the vertical scroll bar should appear in a multiline TextBox.
Public propertyWordWrap
Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.
Top
Methods
  NameDescription
Public methodAppendText
Appends text to the current text of a text box.
Public methodBeginInit
Suspends layout during initialization.
(Inherited from RadControl.)
Public methodCallAccessibilityNotifyClients
This method is used internally!
(Inherited from RadControl.)
Public methodCallBaseOnGotFocus
This method is used internally!
(Inherited from RadControl.)
Public methodCallBaseOnKeyDown
This method is used internally!
(Inherited from RadControl.)
Public methodCallBaseOnKeyPress
This method is used internally!
(Inherited from RadControl.)
Public methodCallBaseOnKeyUp
This method is used internally!
(Inherited from RadControl.)
Public methodCallBaseOnLostFocus
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnClick
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnDoubleClick
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnKeyDown
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnKeyPress
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnKeyUp
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseCaptureChanged
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseDown
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseEnter
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseHover
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseLeave
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseMove
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseUp
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnMouseWheel
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnPreviewKeyDown
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnScreenTipNeeded
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnThemeNameChanged
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnToolTipTextNeeded
This method is used internally!
(Inherited from RadControl.)
Public methodCallOnVisibleChanged
This method is used internally!
(Inherited from RadControl.)
Protected methodCanEditElementAtDesignTime
Determines whether an element may be edited via the EditUIElements dialog at design-time.
(Inherited from RadControl.)
Public methodCanEditUIElement
Determines whether an element from this element tree may be displayed in the EditUIElements dialog.
(Inherited from RadControl.)
Public methodClear
Clears all text from the text box element.
Protected methodConstruct (Inherited from RadControl.)
Public methodControlDefinesThemeForElement
Checks whether the element's theme is defined by the control.
(Inherited from RadControl.)
Public methodCopy
Copies the current selection in the text box to the Clipboard.
Protected methodCreateAccessibilityInstance (Overrides ControlCreateAccessibilityInstance.)
Protected methodCreateBehavior
Creates the input behavior instance. Allows inheritors to provide custom input implementations.
(Inherited from RadControl.)
Protected methodCreateChildItems (Overrides RadControlCreateChildItems(RadElement).)
Protected methodCreateRootElement (Inherited from RadControl.)
Protected methodCreateTextBoxElement
Creates the associated text box element.
Public methodCut
Moves the current selection in the text box to the Clipboard.
Public methodDelete
Deletes the text at current position
Public methodDelete(Boolean)
Deletes the text at the next current position
Public methodDeselectAll
Specifies that the value of the SelectionLength property is zero so that no characters are selected in the element.
Public methodDisableGesture
Disable firing gesture events of the specified type.
(Inherited from RadControl.)
Protected methodDispose (Inherited from RadControl.)
Public methodEnableGesture
Enable firing gesture events of the specified type.
(Inherited from RadControl.)
Public methodEndInit
Resumes layout.
(Inherited from RadControl.)
Protected methodFindPropertyInChildren (Inherited from RadControl.)
Public methodGetChildAt
Method used by control Code Dom serializer to access element in the collection of RootElement.
(Inherited from RadControl.)
Public methodGetControlDefaultSize
This method is used internally!
(Inherited from RadControl.)
Protected methodGetInputElement (Inherited from RadControl.)
Public methodGetPlainText
Strips all html tags of the text set to the control and returns only the plain text.
(Inherited from RadControl.)
Public methodGetPreferredSize (Inherited from RadControl.)
Protected methodGetRootElementDesiredSize (Inherited from RadControl.)
Protected methodInitializeRootElement (Inherited from RadControl.)
Public methodInsert
Inserts the specified text to the textbox
Public methodInvokeLayoutCallback (Inherited from RadControl.)
Protected methodIsInputKey (Inherited from RadControl.)
Public methodLoadElementTree
Loads the element tree. While not loaded, no layout operations are allowed upon the tree. By default, the tree will be loaded when the control is displayed for the first time.
(Inherited from RadControl.)
Public methodLoadElementTree(Size)
Loads the element tree using the specified desired size.
(Inherited from RadControl.)
Protected methodOnAutoSizeChanged (Inherited from RadControl.)
Protected methodOnBackColorChanged (Inherited from RadControl.)
Protected methodOnBindingContextChanged (Inherited from RadControl.)
Protected methodOnCaptureLosing (Inherited from RadControl.)
Protected methodOnClick (Inherited from RadControl.)
Protected methodOnCreateControl (Inherited from RadControl.)
Protected methodOnDoubleClick (Inherited from RadControl.)
Protected methodOnEnabledChanged (Inherited from RadControl.)
Protected methodOnFontChanged (Inherited from RadControl.)
Protected methodOnForeColorChanged (Inherited from RadControl.)
Protected methodOnGesture (Inherited from RadControl.)
Protected methodOnGotFocus (Overrides RadControlOnGotFocus(EventArgs).)
Protected methodOnHandleDestroyed (Inherited from RadControl.)
Protected methodOnInvalidated (Inherited from RadControl.)
Protected methodOnKeyDown (Inherited from RadControl.)
Protected methodOnKeyPress (Overrides RadControlOnKeyPress(KeyPressEventArgs).)
Protected methodOnKeyUp (Inherited from RadControl.)
Protected methodOnLayout (Inherited from RadControl.)
Protected methodOnLoad
Notifies that the control is about to be visualized.
(Inherited from RadControl.)
Protected methodOnLocationChanged (Inherited from RadControl.)
Protected methodOnLostFocus (Overrides RadControlOnLostFocus(EventArgs).)
Protected methodOnMouseCaptureChanged (Inherited from RadControl.)
Protected methodOnMouseDown (Inherited from RadControl.)
Protected methodOnMouseEnter (Inherited from RadControl.)
Protected methodOnMouseHover (Inherited from RadControl.)
Protected methodOnMouseLeave (Inherited from RadControl.)
Protected methodOnMouseMove (Inherited from RadControl.)
Protected methodOnMouseUp (Inherited from RadControl.)
Protected methodOnMouseWheel (Inherited from RadControl.)
Protected methodOnNotifyPropertyChanged(PropertyChangedEventArgs) (Inherited from RadControl.)
Protected methodOnNotifyPropertyChanged(String)
Raises the PropertyChanged event
(Inherited from RadControl.)
Protected methodOnPaddingChanged (Inherited from RadControl.)
Protected methodOnPaint (Inherited from RadControl.)
Protected methodOnPanGesture
Fires the PanGesture event.
(Inherited from RadControl.)
Protected methodOnParentChanged (Inherited from RadControl.)
Protected methodOnPressAndTapGesture
Fires the PressAndTapGesture event.
(Inherited from RadControl.)
Protected methodOnPreviewKeyDown (Inherited from RadControl.)
Protected methodOnRightToLeftChanged (Inherited from RadControl.)
Protected methodOnRotateGesture
Fires the RotateGesture event.
(Inherited from RadControl.)
Protected methodOnScreenTipNeeded (Inherited from RadControl.)
Protected methodOnTextChanging
Raises the [E:TextChanging] event.
Protected methodOnThemeChanged (Inherited from RadControl.)
Protected methodOnThemeNameChanged (Inherited from RadControl.)
Protected methodOnToolTipTextNeeded (Inherited from RadControl.)
Protected methodOnTwoFingerTapGesture
Fires the TwoFingerTapGesture event.
(Inherited from RadControl.)
Protected methodOnZoomGesture
Fires the ZoomGesture event.
(Inherited from RadControl.)
Public methodPaste
Replaces the current selection in the text box with the contents of the Clipboard.
Protected methodProcessAutoSizeChanged (Overrides RadControlProcessAutoSizeChanged(Boolean).)
Protected methodProcessCaptureChangeRequested
Processes a capture request from the specified element.
(Inherited from RadControl.)
Protected methodProcessCodedUIMessage (Inherited from RadControl.)
Protected methodProcessDialogChar (Overrides ControlProcessDialogChar(Char).)
Protected methodProcessFocusRequested
Processes a focus request from the specified element.
(Inherited from RadControl.)
Protected methodProcessGesture (Inherited from RadControl.)
Protected methodProcessMnemonic (Overrides RadControlProcessMnemonic(Char).)
Public methodRefresh (Inherited from RadControl.)
Public methodRegisterHostedControl (Inherited from RadControl.)
Protected methodResetBackColorThemeOverrides (Overrides RadControlResetBackColorThemeOverrides.)
Protected methodResetForeColorThemeOverrides (Overrides RadControlResetForeColorThemeOverrides.)
Public methodResolveStyleGroupForElement
Replaces the default style group for specific element.
(Inherited from RadControl.)
Public methodResumeUpdate (Inherited from RadControl.)
Public methodResumeUpdate(Boolean) (Inherited from RadControl.)
Protected methodScaleControl (Inherited from RadControl.)
Public methodScrollToCaret
Scrolls the contents of the control to the current caret position.
Public methodSelect
Selects a range of text in the text box.
Public methodSelectAll
Selects all text in the text box.
Protected methodSetBackColorThemeOverrides (Overrides RadControlSetBackColorThemeOverrides.)
Protected methodSetBoundsCore (Inherited from RadControl.)
Protected methodSetForeColorThemeOverrides (Overrides RadControlSetForeColorThemeOverrides.)
Public methodSetIsInitializing
This method is used internally!
(Inherited from RadControl.)
Public methodShouldSerializeBackColor
Determines whether the BackColor property should be serialized.
(Inherited from RadControl.)
Public methodShouldSerializeFont
Determines whether the ForeColor property should be serialized.
(Inherited from RadControl.)
Public methodShouldSerializeForeColor
Determines whether the ForeColor property should be serialized.
(Inherited from RadControl.)
Protected methodShouldSerializeProperty
Determines whether the specified RadProperty should be serialized.
(Inherited from RadControl.)
Public methodSuspendUpdate (Inherited from RadControl.)
Public methodUnregisterHostedControl (Inherited from RadControl.)
Protected methodWndProc (Inherited from RadControl.)
Top
Events
  NameDescription
Public eventContextMenuOpening
Occurs when opening the context menu.
Public eventCreateTextBlock
Occurs when an instance of ITextBlock is created
Public eventElementInvalidated (Inherited from RadControl.)
Public eventIMECompositionEnded
Fired when the Input Method Editor completes the composition.
Public eventIMECompositionResult
Fired when the Input Method Editor has a result ready. For languages like Korean this might happen before the composition has ended.
Public eventIMECompositionStarted
Fired when the Input Method Editor starts the composition.
Public eventInitialized
Fires when the control is initialized.
(Inherited from RadControl.)
Public eventPanGesture
Occurs when a pan gesture was sent by a touch input device.
(Inherited from RadControl.)
Public eventPressAndTapGesture
Occurs when a press-and-tap gesture was sent by a touch input device.
(Inherited from RadControl.)
Public eventPropertyChanged
Occurs when a property of an object changes change. Calling the event is developer's responsibility.
(Inherited from RadControl.)
Public eventRotateGesture
Occurs when a rotate gesture was sent by a touch input device.
(Inherited from RadControl.)
Public eventScreenTipNeeded
Occurs prior the ScreenTip of a RadItem instance inside the RadControl is displayed.
(Inherited from RadControl.)
Public eventSelectionChanged
Occurs when text selection is changed.
Public eventSelectionChanging
Occurs when text selection is changing.
Public eventTextBlockFormatting
Occurs when text block is formatting.
Public eventTextChanging
Occurs when the text is changing.
Public eventThemeNameChanged
Fires when the theme name is changed.
(Inherited from RadControl.)
Public eventToolTipTextNeeded
Occurs when a RadItem instance inside the RadControl requires ToolTip text.
(Inherited from RadControl.)
Public eventTwoFingerTapGesture
Occurs when a two-finger-tap gesture was sent by a touch input device.
(Inherited from RadControl.)
Public eventZoomGesture
Occurs when a zoom gesture was sent by a touch input device.
(Inherited from RadControl.)
Top
Fields
  NameDescription
Protected fieldinvalidResizeRect (Inherited from RadControl.)
Protected fieldisAccessibilityRequested (Inherited from RadControl.)
Protected fieldisDisposing2 (Inherited from RadControl.)
Protected fieldisResizing2 (Inherited from RadControl.)
Top
See Also