Class
RadTextBoxElement

Represents a text box element that provides comprehensive text input functionality with advanced features including embedded labels, clear buttons, and animation capabilities. The RadTextBox class is a simple wrapper for the RadTextBoxElement class. All UI and logic functionality is implemented in the RadTextBoxElement class. RadTextBox class acts to transfer events to and from its corresponding RadTextBoxElement instance. The RadTextBoxElement may be nested in other telerik controls.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
[ComVisible(false)]
public class RadTextBoxElement : RadEditorElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementRadTextBoxElement

Derived Classes: BaseTextBoxEditorElementChatInputTextBoxElementGridSearchCellTextBoxElementPropertyGridUITypeEditorElementRadBrowseEditorElementRadButtonTextBoxElementRadCalculatorEditorContentElementRadColorBoxElementRadDropDownTextBoxElementRadMaskedEditBoxElementRadTextBoxEditorElementRadToolbarFormTextBoxElementSchedulerNavigatorSearchTextboxToolbarTextBoxElementCellEditorTextBox

Implements: IBindableComponentIComponentICustomTypeDescriptorIDisposableINotifyPropertyChangedIShortcutProviderIStylableElementIStylableNodeISupportDragISupportDropISupportSystemSkin

Inherited Members RadItem.KeyDownEventRadItem.KeyPressEventRadItem.KeyUpEventRadItem.FocusCommandRadItem.ActionCommandRadItem.UseDefaultDisabledPaintPropertyRadItem.TextPropertyRadItem.TextOrientationPropertyRadItem.FlipTextPropertyRadItem.IsAddNewItemPropertyRadItem.ToolTipTextPropertyRadItem.EnableElementShadowPropertyRadItem.ShadowDepthPropertyRadItem.ShadowColorPropertyRadItem.IsPaintingRippleRadItem.EnableRippleAnimationPropertyRadItem.RippleAnimationColorPropertyRadItem.EnableFocusBorderPropertyRadItem.FocusBorderColorPropertyRadItem.FocusBorderWidthPropertyRadItem.EnableFocusBorderAnimationPropertyRadItem.EnableHighlightPropertyRadItem.HighlightColorPropertyRadItem.EnableBorderHighlightPropertyRadItem.BorderHighlightColorPropertyRadItem.BorderHighlightThicknessPropertyRadItem.VisualStatePropertyRadItem.SetOwnerCollection(RadItemOwnerCollection)RadItem.Select()RadItem.Deselect()RadItem.OnDeselect()RadItem.DoKeyDown(KeyEventArgs)RadItem.DoKeyPress(KeyPressEventArgs)RadItem.DoKeyUp(KeyEventArgs)RadItem.OnKeyDown(KeyEventArgs)RadItem.OnKeyPress(KeyPressEventArgs)RadItem.OnKeyUp(KeyEventArgs)RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadItem.OnPropertyChanging(RadPropertyChangingEventArgs)RadItem.OnPropertyChanged(RadPropertyChangedEventArgs)RadItem.OnEnabledChanged(RadPropertyChangedEventArgs)RadItem.OnTextChanging(TextChangingEventArgs)RadItem.OnTextChanged(EventArgs)RadItem.OnTextOrientationChanged(EventArgs)RadItem.OnFlipTextChanged(EventArgs)RadItem.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadItem.OnMouseUp(MouseEventArgs)RadItem.OnMouseMove(MouseEventArgs)RadItem.OnMouseLeave(EventArgs)RadItem.StartRippleAnimation(MouseEventArgs)RadItem.UpdateFocusBorder(bool)RadItem.ContainsText()RadItem.ShouldSerializeProperty(PropertyDescriptor)RadItem.ProcessDialogKey(Keys)RadItem.ProcessCmdKey(ref Message, Keys)RadItem.RaiseKeyDown(KeyEventArgs)RadItem.RaiseKeyPress(KeyPressEventArgs)RadItem.RaiseKeyUp(KeyEventArgs)RadItem.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadItem.CallOnGesture(GestureEventArgs)RadItem.OnGesture(GestureEventArgs)RadItem.OnTwoFingerTapGesture(GestureEventArgs)RadItem.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadItem.OnPanGesture(PanGestureEventArgs)RadItem.OnRotateGesture(RotateGestureEventArgs)RadItem.OnZoomGesture(ZoomGestureEventArgs)RadItem.CanDragCore(Point)RadItem.GetDragContextCore()RadItem.GetDragHintCore()RadItem.ProcessDragDrop(Point, ISupportDrag)RadItem.ProcessDragOver(Point, ISupportDrag)RadItem.ProcessDragEnter(Point, ISupportDrag)RadItem.ProcessDragLeave(Point, ISupportDrag)RadItem.UpdateOnShortcutsChanged()RadItem.CanHandleShortcut(ShortcutEventArgs)RadItem.IsOnActiveForm(Control, bool)RadItem.SetThemeValueOverride(RadProperty, object, string)RadItem.SetThemeValueOverride(RadProperty, object, string, string)RadItem.SetThemeValueOverride(RadProperty, object, string, Type)RadItem.ResetThemeValueOverride(RadProperty)RadItem.ResetThemeValueOverride(RadProperty, string)RadItem.ResetThemeValueOverrides()RadItem.GetAvailableVisualStates()RadItem.ShouldFallbackToDefaultTheme()RadItem.UseDefaultDisabledPaintRadItem.TextOrientationRadItem.FlipTextRadItem.CanHaveOwnStyleRadItem.TextRadItem.SelectableRadItem.DefaultAutoToolTipRadItem.ShouldHandleMouseInputRadItem.KeyTipRadItem.ParentItemRadItem.ShortcutsHandlerRadItem.EnableElementShadowRadItem.ShadowDepthRadItem.ShadowColorRadItem.EnableRippleAnimationRadItem.RippleAnimationColorRadItem.EnableFocusBorderRadItem.FocusBorderColorRadItem.FocusBorderWidthRadItem.EnableFocusBorderAnimationRadItem.EnableHighlightRadItem.HighlightColorRadItem.EnableBorderHighlightRadItem.BorderHighlightColorRadItem.BorderHighlightThicknessRadItem.MnemonicTextRadItem.ToolTipTextRadItem.ThemeRoleRadItem.VisualStateRadItem.StateManagerRadItem.AllowDragRadItem.AllowDropRadItem.ShortcutsRadItem.AccessibleDescriptionRadItem.AccessibleNameRadItem.AccessibleRoleRadItem.TextOrientationChangedRadItem.FlipTextChangedRadItem.QueryAccessibilityHelpRadItem.KeyDownRadItem.KeyPressRadItem.KeyUpRadItem.ZoomGestureRadItem.RotateGestureRadItem.PanGestureRadItem.TwoFingerTapGestureRadItem.PressAndTapGestureRadComponentElement.ToString()RadComponentElement.GetService(Type)RadComponentElement.CanRaiseEventsRadComponentElement.ContainerRadComponentElement.DesignModeRadComponentElement.SiteRadComponentElement.DataBindingsVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.OnFontChanged(EventArgs)VisualElement.PaintElement(IGraphics, float, SizeF)VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool)VisualElement.PrePaintElement(IGraphics)VisualElement.PostPaintElement(IGraphics)VisualElement.GetScaledFont(float)VisualElement.GetScaledFont(float, Font)VisualElement.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.CallCreateChildElements()RadElement.SuspendReferenceUpdate()RadElement.ResumeReferenceUpdate()RadElement.OnLoad(bool)RadElement.LoadCore()RadElement.OnUnload(ComponentThemableElementTree, bool)RadElement.UnloadCore(ComponentThemableElementTree)RadElement.OnUnloaded(ComponentThemableElementTree)RadElement.OnElementTreeChanged(ComponentThemableElementTree)RadElement.OnBeginDispose()RadElement.SetParent(RadElement)RadElement.OnParentChanged(RadElement)RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool)RadElement.ResetLayout(bool)RadElement.HasInvisibleAncestor()RadElement.ResetLayoutCore()RadElement.InvalidateArrange()RadElement.InvalidateArrange(bool)RadElement.InvalidateMeasure()RadElement.InvalidateMeasure(bool)RadElement.UpdateLayout()RadElement.SuspendLayout()RadElement.SuspendLayout(bool)RadElement.ResumeLayout(bool)RadElement.ResumeLayout(bool, bool)RadElement.Arrange(RectangleF)RadElement.Measure(SizeF)RadElement.SetBounds(Rectangle)RadElement.SetBounds(int, int, int, int)RadElement.GetBoundingRectangle(Size)RadElement.GetBoundingRectangle(Rectangle)RadElement.GetDesiredSize(bool)RadElement.PointToScreen(Point)RadElement.PointFromScreen(Point)RadElement.PointToControl(Point)RadElement.PointFromControl(Point)RadElement.LocationToControl()RadElement.RectangleToScreen(Rectangle)RadElement.HitTest(Point)RadElement.OnRenderSizeChanged(SizeChangedInfo)RadElement.OnChildDesiredSizeChanged(RadElement)RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs)RadElement.ArrangeCore(RectangleF)RadElement.MeasureCore(SizeF)RadElement.ShouldArrangeChild(RadElement)RadElement.ShouldMeasureChild(RadElement)RadElement.MeasureChildren(SizeF)RadElement.GetArrangeRect(RectangleF)RadElement.CanExecuteLayoutOperation()RadElement.CalcLayoutOffset(PointF)RadElement.LockBounds()RadElement.UnlockBounds()RadElement.SetBoundsCore(Rectangle)RadElement.IsInValidState(bool)RadElement.Invalidate()RadElement.Invalidate(bool)RadElement.GetInvalidateBounds()RadElement.NotifyInvalidate(RadElement)RadElement.OnTransformationInvalidated()RadElement.PerformLayoutTransformation(ref RadMatrix)RadElement.PerformPaintTransformation(ref RadMatrix)RadElement.IsInGetAsBitmap()RadElement.PaintElementSkin(IGraphics)RadElement.PaintBackgroundShape(IGraphics)RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF)RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool)RadElement.PaintShadow(RadElement, IGraphics)RadElement.PaintShadowCore(Graphics, Rectangle, RadItem)RadElement.GetShadowRect(ref Rectangle, int)RadElement.PaintFocusCues(IGraphics, Rectangle)RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Brush, float, SizeF)RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF)RadElement.GetAsBitmapEx(Color, float, SizeF)RadElement.GetAsBitmapEx(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)RadElement.GetClipRect()RadElement.ShouldPaintChild(RadElement)RadElement.GetFocusRect()RadElement.GetCurrentShape()RadElement.GetPaintRectangle(float, float, SizeF)RadElement.GetPatchedRect(RectangleF, float, SizeF)RadElement.GetXPVisualStyle()RadElement.GetVistaVisualStyle()RadElement.InitializeSystemSkinPaint()RadElement.UnitializeSystemSkinPaint()RadElement.GetSystemSkinPaintBounds()RadElement.OnUseSystemSkinChanged(EventArgs)RadElement.ShouldPaintSystemSkin()RadElement.ComposeShouldPaintSystemSkin()RadElement.GetStylablePropertiesFilter()RadElement.ResetStyleSettings(bool)RadElement.ResetStyleSettings(bool, RadProperty)RadElement.ProcessBehaviors(RadPropertyChangedEventArgs)RadElement.AddBehavior(PropertyChangeBehavior)RadElement.GetBehaviors()RadElement.RemoveBehavior(PropertyChangeBehavior)RadElement.ClearBehaviors()RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection)RadElement.SetThemeApplied(bool)RadElement.OnStyleChanged(RadPropertyChangedEventArgs)RadElement.UnapplyStyle()RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection)RadElement.RemoveBehaviors(PropertyChangeBehavior)RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection)RadElement.GetThemeEffectiveType()RadElement.GetChildrenByType(Type)RadElement.GetChildrenByBaseType(Type)RadElement.FindAncestorByThemeEffectiveType(Type)RadElement.FindAncestor<T>()RadElement.IsAncestorOf(RadElement)RadElement.FindDescendant<T>()RadElement.FindDescendant(Predicate<RadElement>)RadElement.FindDescendant(Type)RadElement.EnumDescendants(TreeTraversalMode)RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.EnumDescendants(Filter, TreeTraversalMode)RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode)RadElement.GetDescendants(Filter, TreeTraversalMode)RadElement.GetAncestors(Filter)RadElement.GetAncestors(Predicate<RadElement>)RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs)RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs)RadElement.OnTunnelEvent(RadElement, RoutedEventArgs)RadElement.IsEventInProcess(RaisedRoutedEvent)RadElement.RegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, Type)RadElement.GetRegisterRoutedEvent(string, string)RadElement.GetRegisterRoutedEvent(string)RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation)RadElement.GetChildren(ChildrenListOptions)RadElement.SendToBack()RadElement.BringToFront()RadElement.IsChildOf(RadElement)RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnClick(EventArgs)RadElement.OnDoubleClick(EventArgs)RadElement.OnMouseEnter(EventArgs)RadElement.PerformClick()RadElement.OnMouseWheel(MouseEventArgs)RadElement.DoMouseWheel(MouseEventArgs)RadElement.DoClick(EventArgs)RadElement.DoDoubleClick(EventArgs)RadElement.IsInputKey(InputKeyEventArgs)RadElement.MouseEventArgsFromControl(MouseEventArgs)RadElement.DoMouseDown(MouseEventArgs)RadElement.DoMouseUp(MouseEventArgs)RadElement.DoMouseMove(MouseEventArgs)RadElement.ShowScreenTip(ScreenTipNeededEventArgs)RadElement.HideScreenTip()RadElement.DoMouseHover(EventArgs)RadElement.OnShowScreenTip(ComponentInputBehavior)RadElement.RaiseClick(EventArgs)RadElement.RaiseDoubleClick(EventArgs)RadElement.RaiseMouseWheel(MouseEventArgs)RadElement.UpdateContainsFocus(bool)RadElement.DoMouseEnter(EventArgs)RadElement.DoMouseLeave(EventArgs)RadElement.GetValue(RadProperty)RadElement.AddStylePropertySetting(IPropertySetting)RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource)RadElement.NotifyChildren(RadPropertyChangedEventArgs)RadElement.OnBoundsChanged(RadPropertyChangedEventArgs)RadElement.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetClientRectangle(SizeF)RadElement.GetBorderThickness(BorderPrimitive)RadElement.DpiScaleChanged(SizeF)RadElement.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.StretchVerticallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.GetInheritedValue(RadProperty)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadTextBoxElement()

Initializes a new instance of the RadTextBoxElement class.

Declaration

cs-api-definition
public RadTextBoxElement()

RadTextBoxElement(RadTextBoxItem)

Initializes a new instance of the RadTextBoxElement class.

Declaration

cs-api-definition
public RadTextBoxElement(RadTextBoxItem textBoxItem)

Parameters

textBoxItem

RadTextBoxItem

The RadTextBoxItem instance to use as the underlying text input control.

Fields

NullTextColorProperty

Identifies the NullTextColor dependency property that controls the color of prompt text displayed when the TextBox contains no text.

Declaration

cs-api-definition
public static RadProperty NullTextColorProperty

Field Value

RadProperty

Properties

Border

Gets the BorderPrimitive instance used for rendering the border around the text box.

Declaration

cs-api-definition
public BorderPrimitive Border { get; }

Property Value

BorderPrimitive

ButtonsStack

Gets the StackLayoutPanel instance that contains and arranges the clear button and other action buttons.

Declaration

cs-api-definition
public StackLayoutPanel ButtonsStack { get; }

Property Value

StackLayoutPanel

ClearButton

Gets the clear button element that allows users to quickly clear the text box content.

Declaration

cs-api-definition
public LightVisualButtonElement ClearButton { get; }

Property Value

LightVisualButtonElement

EmbeddedLabel

Gets the embedded label element that provides floating label functionality with animation support.

Declaration

cs-api-definition
public LightVisualElement EmbeddedLabel { get; }

Property Value

LightVisualElement

EmbeddedLabelAnimationSpeed

Gets or sets the animation speed for the embedded label transitions. The speed is an integer between 1 (animation disabled) and 10 (slowest animation) with a default value of 8.

Declaration

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

Property Value

int

EmbeddedLabelBorderOffset

Gets or sets the offset distance in pixels of the embedded label from the bottom border when the label is in the down position.

Declaration

cs-api-definition
public float EmbeddedLabelBorderOffset { get; set; }

Property Value

float

EmbeddedLabelText

Gets or sets the text content displayed in the embedded label.

Declaration

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

Property Value

string

Fill

Gets the FillPrimitive instance used for rendering the background of the text box.

Declaration

cs-api-definition
public FillPrimitive Fill { get; }

Property Value

FillPrimitive

NullTextColor

Gets or sets the color of the prompt text that is displayed when the TextBox contains no text.

Declaration

cs-api-definition
public Color NullTextColor { get; set; }

Property Value

Color

PasswordChar

Gets or sets the character used to mask characters in a password text box control for security purposes.

Declaration

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

Property Value

char

RepositionEmbeddedLabel

Gets or sets a value indicating whether the embedded label should automatically reposition itself when the text box is empty.

Declaration

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

Property Value

bool

ShowBorder

Gets or sets a value indicating whether the border around the text box is visible or not.

Declaration

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

Property Value

bool

ShowClearButton

Gets or sets a value indicating whether the clear button is displayed to allow users to quickly clear the text box content.

Declaration

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

Property Value

bool

ShowEmbeddedLabel

Gets or sets a value indicating whether the embedded label is visible and provides floating label functionality.

Declaration

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

Property Value

bool

TextAlign

Gets or sets the horizontal text alignment of the TextBoxItem.

Declaration

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

Property Value

HorizontalAlignment

TextBoxItem

Gets the underlying RadTextBoxItem instance that handles the core text input functionality.

Declaration

cs-api-definition
public RadTextBoxItem TextBoxItem { get; }

Property Value

RadTextBoxItem

UseGenericBorderPaint

Gets or sets a value indicating whether to use generic border painting to prevent clipping of characters due to font name or size particularities.

Declaration

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

Property Value

bool

Methods

ArrangeOverride(SizeF)

Arranges the child elements within the final size allocated to this element.

Declaration

cs-api-definition
protected override SizeF ArrangeOverride(SizeF finalSize)

Parameters

finalSize

SizeF

The final area within which the element should arrange itself and its children.

Returns

SizeF

The actual size used by the element after arrangement.

Overrides RadElement.ArrangeOverride(SizeF)

CallTextChanged(EventArgs)

Raises the TextChanged event.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

CallTextChanging(TextChangingEventArgs)

Raises the TextChanging event.

Declaration

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

Parameters

e

TextChangingEventArgs

A TextChangingEventArgs that contains the event data including old and new text values.

CreateChildElements()

Creates the child elements including fill primitive, border primitive, buttons stack, clear button, and embedded label.

Declaration

cs-api-definition
protected override void CreateChildElements()

Overrides RadElement.CreateChildElements()

CreateClearButton()

Creates and configures the clear button element with default padding settings.

Declaration

cs-api-definition
protected virtual LightVisualButtonElement CreateClearButton()

Returns

LightVisualButtonElement

A configured LightVisualButtonElement instance representing the clear button.

CreateEmbeddedLabel()

Creates and configures the embedded label element with default properties for positioning and appearance.

Declaration

cs-api-definition
protected virtual LightVisualElement CreateEmbeddedLabel()

Returns

LightVisualElement

A configured LightVisualElement instance representing the embedded label.

DisposeManagedResources()

Releases managed resources used by the RadTextBoxElement and unsubscribes from event handlers.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides RadItem.DisposeManagedResources()

Focus()

Sets input focus to the text box element.

Declaration

cs-api-definition
public override bool Focus()

Returns

bool

True if the input focus request was successful; otherwise, false.

Overrides RadElement.Focus()

InitializeFields()

Initializes the default field values and properties for the text box element including stretch behavior and embedded label border offset.

Declaration

cs-api-definition
protected override void InitializeFields()

Overrides RadItem.InitializeFields()

MeasureOverride(SizeF)

Measures the desired size of the element and its children based on the available space.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The available size that the parent element can allocate to this element.

Returns

SizeF

The desired size of the element including all children.

Overrides RadElement.MeasureOverride(SizeF)

OnAcceptsTabChanged(EventArgs)

Raises the AcceptsTabChanged event.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnBubbleEvent(RadElement, RoutedEventArgs)

Handles bubbled events from child elements including mouse events and multiline property changes.

Declaration

cs-api-definition
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)

Parameters

sender

RadElement

The source of the routed event.

args

RoutedEventArgs

A RoutedEventArgs that contains the event data.

Overrides RadElement.OnBubbleEvent(RadElement, RoutedEventArgs)

OnClearButtonClick()

Called when the clear button is clicked and clears the text content by setting it to an empty string.

Declaration

cs-api-definition
protected virtual void OnClearButtonClick()

OnHideSelectionChanged(EventArgs)

Raises the HideSelectionChanged event.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnLoaded()

Called when the element is loaded and initializes clear button visibility and focus event handling.

Declaration

cs-api-definition
protected override void OnLoaded()

Overrides RadElement.OnLoaded()

OnModifiedChanged(EventArgs)

Raises the ModifiedChanged event.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnMouseDown(MouseEventArgs)

Handles mouse down events by animating the embedded label up and setting focus to the text box control.

Declaration

cs-api-definition
protected override void OnMouseDown(MouseEventArgs e)

Parameters

e

MouseEventArgs

A MouseEventArgs that contains the event data.

Overrides RadItem.OnMouseDown(MouseEventArgs)

OnMultilineChanged(EventArgs)

Raises the MultilineChanged event with the specified event arguments.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnReadOnlyChanged(EventArgs)

Raises the ReadOnlyChanged event with the specified event arguments.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnSelect()

Called when the element is selected and sets focus to the text box.

Declaration

cs-api-definition
protected override void OnSelect()

Overrides RadItem.OnSelect()

OnTextAlignChanged(EventArgs)

Raises the TextAlignChanged event.

Declaration

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

Parameters

e

EventArgs

An EventArgs that contains the event data.

Events

AcceptsTabChanged

Occurs when the value of the AcceptsTab property has changed.

Declaration

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

Event Value

EventHandler

HideSelectionChanged

Occurs when the value of the HideSelection property has changed.

Declaration

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

Event Value

EventHandler

ModifiedChanged

Occurs when the value of the Modified property has changed.

Declaration

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

Event Value

EventHandler

MultilineChanged

Occurs when the value of the Multiline property has changed.

Declaration

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

Event Value

EventHandler

ReadOnlyChanged

Occurs when the ReadOnly property value has changed.

Declaration

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

Event Value

EventHandler

TextAlignChanged

Occurs when the value of the TextAlign property has changed.

Declaration

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

Event Value

EventHandler

TextChanged

Occurs after the text content has been changed.

Declaration

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

Event Value

EventHandler

TextChanging

Occurs before the text content is changed, allowing validation or modification of the new text value.

Declaration

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

Event Value

TextChangingEventHandler