Class
RadTextBoxBase

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[DefaultBindingProperty("Text")]
public abstract class RadTextBoxBase : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadTextBoxBase

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadEditorControl.OnParentChanged(EventArgs)RadEditorControl.GetPreferredSize(Size)RadEditorControl.GetRootElementDesiredSize(int, int, int, int)RadEditorControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.CreateChildItems(RadElement)RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadTextBoxBase()

Represents RadTextBoxBase constructor

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public bool AcceptsReturn { get; set; }

Property Value

bool

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.

Declaration

cs-api-definition
public bool AcceptsTab { get; set; }

Property Value

bool

AutoCompleteCustomSource

Declaration

cs-api-definition
[Browsable(true)]
public AutoCompleteStringCollection AutoCompleteCustomSource { get; set; }

Property Value

AutoCompleteStringCollection

AutoCompleteMode

Declaration

cs-api-definition
[Browsable(true)]
public AutoCompleteMode AutoCompleteMode { get; set; }

Property Value

AutoCompleteMode

AutoCompleteSource

Declaration

cs-api-definition
[Browsable(true)]
[TypeConverter(typeof(TextBoxAutoCompleteSourceConverter))]
public AutoCompleteSource AutoCompleteSource { get; set; }

Property Value

AutoCompleteSource

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

cs-api-definition
[Browsable(true)]
public override bool AutoSize { get; set; }

Property Value

bool

Overrides RadControl.AutoSize

CanUndo

Gets value indicating whether undo is allowed.

Declaration

cs-api-definition
public bool CanUndo { get; }

Property Value

bool

CharacterCasing

Gets or sets a value indicating whether the RadTextBox control modifies the case of characters as they are typed.

Declaration

cs-api-definition
public CharacterCasing CharacterCasing { get; set; }

Property Value

CharacterCasing

DefaultSize

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

Font

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl03_LabelAbstract">Gets or sets

the font of the text displayed by the control.

Declaration

cs-api-definition
public override Font Font { get; set; }

Property Value

Font

Overrides RadControl.Font

HideSelection

Gets or sets a value indicating whether the selected text remains highlighted even when the RadTextBox has lost the focus.

Declaration

cs-api-definition
public bool HideSelection { get; set; }

Property Value

bool

Lines

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets

the lines of text in multiline configurations.

Declaration

cs-api-definition
public string[] Lines { get; set; }

Property Value

string[]

MaxLength

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets

the maximum number of characters allowed in the text box.

Declaration

cs-api-definition
public int MaxLength { get; set; }

Property Value

int

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.

Declaration

cs-api-definition
public bool Modified { get; set; }

Property Value

bool

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.

Declaration

cs-api-definition
public bool Multiline { get; set; }

Property Value

bool

NullText

Gets or sets the text that is displayed when the ComboBox contains a null reference.

Declaration

cs-api-definition
public string NullText { get; set; }

Property Value

string

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.

Declaration

cs-api-definition
public char PasswordChar { get; set; }

Property Value

char

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.

Declaration

cs-api-definition
public bool ReadOnly { get; set; }

Property Value

bool

ScrollBars

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets

which scroll bars should appear in a multiline TextBox control.

Declaration

cs-api-definition
public ScrollBars ScrollBars { get; set; }

Property Value

ScrollBars

SelectedText

Gets or sets a value indicating the currently selected text in the control.

Declaration

cs-api-definition
public string SelectedText { get; set; }

Property Value

string

SelectionLength

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets

the number of characters selected in the text box.

Declaration

cs-api-definition
public int SelectionLength { get; set; }

Property Value

int

SelectionStart

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets

the starting point of text selected in the text box.

Declaration

cs-api-definition
public int SelectionStart { get; set; }

Property Value

int

ShortcutsEnabled

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Gets or sets

a value indicating whether the defined shortcuts are enabled.

Declaration

cs-api-definition
public bool ShortcutsEnabled { get; set; }

Property Value

bool

ShowNullText

Gets or sets a value indicating whether the null text will be shown when the control is focused and the text is empty.

Declaration

cs-api-definition
public bool ShowNullText { get; set; }

Property Value

bool

TabStop

Declaration

cs-api-definition
public bool TabStop { get; set; }

Property Value

bool

Text

Gets or sets the displayed text.

Declaration

cs-api-definition
public override string Text { get; set; }

Property Value

string

Overrides RadControl.Text

TextAlign

Gets or sets how text is aligned in a TextBox control.

Declaration

cs-api-definition
public virtual HorizontalAlignment TextAlign { get; set; }

Property Value

HorizontalAlignment

TextLength

Gets the length of the text in the control.

Declaration

cs-api-definition
public int TextLength { get; }

Property Value

int

WordWrap

Gets or sets a value indicating whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.

Declaration

cs-api-definition
public bool WordWrap { get; set; }

Property Value

bool

Methods

AppendText(string)

Appends text to the current text.

Declaration

cs-api-definition
public void AppendText(string text)

Parameters

text

string

Clear()

Empties the TextBox.

Declaration

cs-api-definition
public void Clear()

ClearUndo()

Undo to the previous text value before clear invocation.

Declaration

cs-api-definition
public void ClearUndo()

Copy()

Copies the text value to the clipboard.

Declaration

cs-api-definition
public void Copy()

Cut()

Cuts the text value to the clipboard.

Declaration

cs-api-definition
public void Cut()

DeselectAll()

Deselects the text in the cotrol.

Declaration

cs-api-definition
public void DeselectAll()

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadControl.Dispose(bool)

Focus()

Sets input focus to the control.

Declaration

cs-api-definition
public bool Focus()

Returns

bool

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.

Declaration

cs-api-definition
public char GetCharFromPosition(Point point)

Parameters

point

Point

Returns

char

GetCharIndexFromPosition(Point)

Retrieves the index of the character nearest to the specified location.

Declaration

cs-api-definition
public int GetCharIndexFromPosition(Point point)

Parameters

point

Point

Returns

int

GetFirstCharIndexFromLine(int)

Retrieves the index of the first character of a given line.

Declaration

cs-api-definition
public int GetFirstCharIndexFromLine(int lineNumber)

Parameters

lineNumber

int

Returns

int

GetFirstCharIndexOfCurrentLine()

Retrieves the index of the first character of the current line. This method is not supported by MaskedTextBox.

Declaration

cs-api-definition
public int GetFirstCharIndexOfCurrentLine()

Returns

int

GetLineFromCharIndex(int)

Retrieves the line number from the specified character position within the text of the control.

Declaration

cs-api-definition
public int GetLineFromCharIndex(int index)

Parameters

index

int

Returns

int

GetPositionFromCharIndex(int)

Retrieves the location within the control at the specified character index.

Declaration

cs-api-definition
public Point GetPositionFromCharIndex(int index)

Parameters

index

int

Returns

Point

InitializeTextElement()

Initializes textbox's children

Declaration

cs-api-definition
protected abstract void InitializeTextElement()

OnAcceptsTabChanged(EventArgs)

Raises the AcceptsTabChanged event.

Declaration

cs-api-definition
protected virtual void OnAcceptsTabChanged(EventArgs e)

Parameters

e

EventArgs

OnHideSelectionChanged(EventArgs)

Raises the HideSelectionChanged event.

Declaration

cs-api-definition
protected virtual void OnHideSelectionChanged(EventArgs e)

Parameters

e

EventArgs

OnLostFocus(EventArgs)

Declaration

cs-api-definition
protected override void OnLostFocus(EventArgs e)

Parameters

e

EventArgs

Overrides RadControl.OnLostFocus(EventArgs)

OnModifiedChanged(EventArgs)

Raises the ModifiedChanged event.

Declaration

cs-api-definition
protected virtual void OnModifiedChanged(EventArgs e)

Parameters

e

EventArgs

OnMultilineChanged(EventArgs)

Raises the MultilineChanged event.

Declaration

cs-api-definition
protected virtual void OnMultilineChanged(EventArgs e)

Parameters

e

EventArgs

OnReadOnlyChanged(EventArgs)

Raises the ReadOnlyChanged event.

Declaration

cs-api-definition
protected virtual void OnReadOnlyChanged(EventArgs e)

Parameters

e

EventArgs

OnTextAlignChanged(EventArgs)

Raises the TextAlignChanged event.

Declaration

cs-api-definition
protected virtual void OnTextAlignChanged(EventArgs e)

Parameters

e

EventArgs

OnTextChanging(TextChangingEventArgs)

Raises the TextChanging event.

Declaration

cs-api-definition
protected virtual void OnTextChanging(TextChangingEventArgs e)

Parameters

e

TextChangingEventArgs

Paste()

Pastes the text value to the clipboard.

Declaration

cs-api-definition
public void Paste()

Paste(string)

Pastes the string parameter to the clipboard.

Declaration

cs-api-definition
public void Paste(string text)

Parameters

text

string

ProcessAutoSizeChanged(bool)

Declaration

cs-api-definition
protected override void ProcessAutoSizeChanged(bool value)

Parameters

value

bool

Overrides RadControl.ProcessAutoSizeChanged(bool)

ScrollToCaret()

Scrolls the contents of the control to the current caret position.

Declaration

cs-api-definition
public void ScrollToCaret()

Select()

Activates the control.

Declaration

cs-api-definition
public void Select()

Select(int, int)

Selects the text in the TextBox from the start position inclusive to the end position exclusive.

Declaration

cs-api-definition
public void Select(int start, int length)

Parameters

start

int

length

int

SelectAll()

Selects the text in the TextBox.

Declaration

cs-api-definition
public void SelectAll()

Undo()

Undoes the last edit operation in the text box.

Declaration

cs-api-definition
public void Undo()

UnwireHostEvents()

Declaration

cs-api-definition
protected virtual void UnwireHostEvents()

WireHostEvents()

Declaration

cs-api-definition
protected virtual void WireHostEvents()

WndProc(ref Message)

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

Overrides RadControl.WndProc(ref Message)

Events

AcceptsTabChanged

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when

the value of the AcceptsTab property has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler AcceptsTabChanged

Event Value

EventHandler

HideSelectionChanged

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when

the value of the HideSelection property changes.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler HideSelectionChanged

Event Value

EventHandler

ModifiedChanged

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when

the value of the Modified property has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler ModifiedChanged

Event Value

EventHandler

MultilineChanged

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl02_LabelAbstract">Occurs when

the value of the Multiline property has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler MultilineChanged

Event Value

EventHandler

ReadOnlyChanged

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl01_LabelAbstract">Occurs when

the ReadOnly property changes.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler ReadOnlyChanged

Event Value

EventHandler

TextAlignChanged

<span id="ctl00_ContentPlaceHolder1_src1_resRC_ctl03_LabelAbstract">Occurs when

the value of the TextAlign property has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler TextAlignChanged

Event Value

EventHandler

TextChanging

Occurs when text is being changed.

Declaration

cs-api-definition
[Browsable(true)]
public event TextChangingEventHandler TextChanging

Event Value

TextChangingEventHandler