Class
RadTextBoxControlElement

Represents an independent text box element that provides comprehensive text editing capabilities including auto-completion, scrolling, selection management, and input handling. This element serves as the core implementation for text box controls and extends ScrollViewElement<T> with specialized text editing functionality.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadTextBoxControlElement : ScrollViewElement<TextBoxViewElement>, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementScrollViewElement<TextBoxViewElement>RadTextBoxControlElement

Derived Classes: RadAutoCompleteBoxElementRadPageViewElement.PageViewItemTextEditorElement

Implements: IBindableComponentIBorderElementIBoxElementIBoxStyleIComponentICustomTypeDescriptorIDisposableIDrawFillElementIFillElementIImageElementINotifyPropertyChangedIPrimitiveElementIShapedElementIShortcutProviderIStylableElementIStylableNodeISupportDragISupportDropISupportSystemSkinITextPrimitiveITextProvider

Inherited Members ScrollViewElement<TextBoxViewElement>.CreateScrollBarElement()ScrollViewElement<TextBoxViewElement>.CreateViewElement()ScrollViewElement<TextBoxViewElement>.InitializeViewElement(TextBoxViewElement)ScrollViewElement<TextBoxViewElement>.MeasureView(SizeF)ScrollViewElement<TextBoxViewElement>.ArrangeHScrollBar(ref RectangleF, RectangleF)ScrollViewElement<TextBoxViewElement>.ArrangeVScrollBar(ref RectangleF, RectangleF, RectangleF)ScrollViewElement<TextBoxViewElement>.HScrollBarScrollViewElement<TextBoxViewElement>.VScrollBarScrollViewElement<TextBoxViewElement>.ViewElementLightVisualElement.BackgroundImagePropertyLightVisualElement.BackgroundImageLayoutPropertyLightVisualElement.BackColor2PropertyLightVisualElement.BackColor3PropertyLightVisualElement.BackColor4PropertyLightVisualElement.BorderBottomColorPropertyLightVisualElement.BorderBottomShadowColorPropertyLightVisualElement.BorderBottomWidthPropertyLightVisualElement.BorderBoxStylePropertyLightVisualElement.BorderColorPropertyLightVisualElement.BorderColor2PropertyLightVisualElement.BorderColor3PropertyLightVisualElement.BorderColor4PropertyLightVisualElement.BorderDashStylePropertyLightVisualElement.BorderDashPatternPropertyLightVisualElement.BorderDrawModePropertyLightVisualElement.BorderGradientAnglePropertyLightVisualElement.BorderGradientStylePropertyLightVisualElement.BorderInnerColorPropertyLightVisualElement.BorderInnerColor2PropertyLightVisualElement.BorderInnerColor3PropertyLightVisualElement.BorderInnerColor4PropertyLightVisualElement.BorderLeftColorPropertyLightVisualElement.BorderLeftShadowColorPropertyLightVisualElement.BorderLeftWidthPropertyLightVisualElement.BorderRightColorPropertyLightVisualElement.BorderRightShadowColorPropertyLightVisualElement.BorderRightWidthPropertyLightVisualElement.BorderTopColorPropertyLightVisualElement.BorderTopShadowColorPropertyLightVisualElement.BorderTopWidthPropertyLightVisualElement.BorderWidthPropertyLightVisualElement.ClipTextPropertyLightVisualElement.DisabledTextRenderingHintPropertyLightVisualElement.DrawBorderPropertyLightVisualElement.DrawFillPropertyLightVisualElement.DrawTextPropertyLightVisualElement.DrawBackgroundImagePropertyLightVisualElement.DrawImagePropertyLightVisualElement.EnableImageTransparencyPropertyLightVisualElement.GradientAnglePropertyLightVisualElement.GradientPercentagePropertyLightVisualElement.GradientPercentage2PropertyLightVisualElement.GradientStylePropertyLightVisualElement.HorizontalLineColorPropertyLightVisualElement.HorizontalLineWidthPropertyLightVisualElement.ImageAlignmentPropertyLightVisualElement.ImageIndexPropertyLightVisualElement.ImageKeyPropertyLightVisualElement.ImageLayoutPropertyLightVisualElement.ImageOpacityPropertyLightVisualElement.ImagePropertyLightVisualElement.ImageTransparentColorPropertyLightVisualElement.NumberOfColorsPropertyLightVisualElement.ShowHorizontalLinePropertyLightVisualElement.SvgImagePropertyLightVisualElement.TextAlignmentPropertyLightVisualElement.TextImageRelationPropertyLightVisualElement.TextWrapPropertyLightVisualElement.TextRenderingHintPropertyLightVisualElement.GetBorderThickness(LightVisualElement, bool)LightVisualElement.ShouldSerializeProperty(PropertyDescriptor)LightVisualElement.GetImageDrawTypeLocalValue()LightVisualElement.MapStyleProperty(RadProperty, string)LightVisualElement.GetStylablePropertiesFilter()LightVisualElement.GetPaintingBorderWidth()LightVisualElement.OnBitStateChanged(long, bool, bool)LightVisualElement.DisposeManagedResources()LightVisualElement.GetAsBitmapEx(Color, float, SizeF)LightVisualElement.GetClipRect()LightVisualElement.PaintElement(IGraphics, float, SizeF)LightVisualElement.PaintTextCore(IGraphics)LightVisualElement.DrawHorizontalLineWithoutText(IGraphics)LightVisualElement.DrawHorizontalLine(IGraphics)LightVisualElement.PaintImage(IGraphics)LightVisualElement.PaintSvgImage(IGraphics)LightVisualElement.PaintBackgroundImage(IGraphics)LightVisualElement.PaintContent(IGraphics)LightVisualElement.AnimateImage(Image, bool)LightVisualElement.ClipImage(Image, Rectangle, Size)LightVisualElement.CalculateDesiredSize(SizeF, SizeF, SizeF)LightVisualElement.MeasureElements(SizeF, SizeF, Padding)LightVisualElement.ArrangeElement(RadElement, SizeF)LightVisualElement.GetClientOffset(bool)LightVisualElement.GetBorderThickness(bool)LightVisualElement.GetClientRectangle(bool, SizeF)LightVisualElement.GetClientRectangle(SizeF)LightVisualElement.GetTextAlignment(ContentAlignment)LightVisualElement.GetTextAlignment()LightVisualElement.OnTunnelEvent(RadElement, RoutedEventArgs)LightVisualElement.OnAnimatedImageFrameChanged()LightVisualElement.GetFaceRectangle()LightVisualElement.CreateTextParams()LightVisualElement.PaintPrimitive(IGraphics, float, SizeF, TextParams)LightVisualElement.PaintPrimitive(IGraphics, TextParams)LightVisualElement.MeasureOverride(SizeF, TextParams)LightVisualElement.OnMouseMove(object, MouseEventArgs)LightVisualElement.GetTextSize(SizeF, TextParams)LightVisualElement.GetTextSize(TextParams)LightVisualElement.TextRenderingHintLightVisualElement.DisabledTextRenderingHintLightVisualElement.ShouldPaintLightVisualElement.CanFocusLightVisualElement.DrawTextLightVisualElement.DrawFillLightVisualElement.DrawBorderLightVisualElement.DrawBackgroundImageLightVisualElement.DrawImageLightVisualElement.BorderBoxStyleLightVisualElement.BorderDrawModeLightVisualElement.BorderWidthLightVisualElement.BorderLeftWidthLightVisualElement.BorderTopWidthLightVisualElement.BorderRightWidthLightVisualElement.BorderBottomWidthLightVisualElement.BorderGradientAngleLightVisualElement.BorderGradientStyleLightVisualElement.BorderColorLightVisualElement.BorderColor2LightVisualElement.BorderColor3LightVisualElement.BorderColor4LightVisualElement.BorderInnerColorLightVisualElement.BorderInnerColor2LightVisualElement.BorderInnerColor3LightVisualElement.BorderInnerColor4LightVisualElement.BackColor2LightVisualElement.BackColor3LightVisualElement.BackColor4LightVisualElement.NumberOfColorsLightVisualElement.GradientStyleLightVisualElement.GradientAngleLightVisualElement.GradientPercentageLightVisualElement.GradientPercentage2LightVisualElement.BackgroundImageLightVisualElement.ImageLightVisualElement.ImageIndexLightVisualElement.ImageKeyLightVisualElement.ImageLayoutLightVisualElement.BackgroundImageLayoutLightVisualElement.ImageOpacityLightVisualElement.DisabledImageOpacityLightVisualElement.TextAlignmentLightVisualElement.ImageAlignmentLightVisualElement.TextImageRelationLightVisualElement.ShowHorizontalLineLightVisualElement.HorizontalLineColorLightVisualElement.HorizontalLineWidthLightVisualElement.DisableHTMLRenderingLightVisualElement.BorderLeftColorLightVisualElement.BorderTopColorLightVisualElement.BorderRightColorLightVisualElement.BorderBottomColorLightVisualElement.BorderLeftShadowColorLightVisualElement.BorderTopShadowColorLightVisualElement.BorderRightShadowColorLightVisualElement.BorderBottomShadowColorLightVisualElement.ClipTextLightVisualElement.LayoutLightVisualElement.ImageTransparentColorLightVisualElement.BorderDashStyleLightVisualElement.BorderDashPatternLightVisualElement.EnableImageTransparencyLightVisualElement.SvgImageLightVisualElement.ImageDrawTypeLightVisualElement.AutoEllipsisLightVisualElement.UseMnemonicLightVisualElement.TextWrapLightVisualElement.ShowKeyboardCuesLightVisualElement.MeasureTrailingSpacesLightVisualElement.TextParamsUIItemBase.PaintFill(IGraphics, float, SizeF)UIItemBase.GetFillPaintRect(float, SizeF)UIItemBase.PaintFill(IGraphics, float, SizeF, RectangleF)UIItemBase.PaintBorder(IGraphics, float, SizeF)UIItemBase.PaintBorder(IGraphics, float, SizeF, RectangleF)UIItemBase.GetBorderPaintRect(float, SizeF)UIItemBase.ShouldUsePaintBuffer()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.OnSelect()RadItem.Deselect()RadItem.OnDeselect()RadItem.DoKeyDown(KeyEventArgs)RadItem.DoKeyPress(KeyPressEventArgs)RadItem.DoKeyUp(KeyEventArgs)RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs)RadItem.OnPropertyChanging(RadPropertyChangingEventArgs)RadItem.OnEnabledChanged(RadPropertyChangedEventArgs)RadItem.OnTextChanging(TextChangingEventArgs)RadItem.OnTextChanged(EventArgs)RadItem.OnTextOrientationChanged(EventArgs)RadItem.OnFlipTextChanged(EventArgs)RadItem.PaintOverride(IGraphics, Rectangle, float, SizeF, bool)RadItem.StartRippleAnimation(MouseEventArgs)RadItem.UpdateFocusBorder(bool)RadItem.ContainsText()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.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.TextChangingRadItem.TextChangedRadItem.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.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.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(Brush, float, SizeF)RadElement.GetAsBitmap(Brush, float, SizeF)RadElement.IsInVisibleClipBounds(Rectangle)RadElement.SetClipping(Graphics)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.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.OnBubbleEvent(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()RadElement.Focus(bool)RadElement.SetFocusPropertySafe(bool)RadElement.KillFocus()RadElement.OnCLREventsRise(RoutedEventArgs)RadElement.OnMouseHover(EventArgs)RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs)RadElement.OnLostMouseCapture(MouseEventArgs)RadElement.OnClick(EventArgs)RadElement.PerformClick()RadElement.DoMouseWheel(MouseEventArgs)RadElement.DoClick(EventArgs)RadElement.DoDoubleClick(EventArgs)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.OnLocationChanged(RadPropertyChangedEventArgs)RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs)RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue)RadElement.IsPropertyCancelable(RadPropertyMetadata)RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs)RadElement.PerformDispose(bool)RadElement.DisposeChildren()RadElement.GetStylableChildrenHierarchy()RadElement.GetStylableChildren()RadElement.GetBorderThickness(BorderPrimitive)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.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.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.Dispose()DisposableObject.Dispose(bool)DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadTextBoxControlElement()

Initializes a new instance of the RadTextBoxControlElement class.

Declaration

cs-api-definition
public RadTextBoxControlElement()

Properties

AcceptsReturn

Gets or sets a value indicating whether pressing ENTER in a multiline TextBox element creates a new line of text in the element or activates the default button for the form.

Declaration

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

Property Value

bool

true if ENTER key creates a new line; otherwise, false to activate the default button.

AcceptsTab

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.

Declaration

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

Property Value

bool

true if TAB key inserts a tab character; otherwise, false to move focus to next control.

AutoCompleteDataSource

Gets or sets a value specifying the source of complete items used for automatic completion.

Declaration

cs-api-definition
public object AutoCompleteDataSource { get; set; }

Property Value

object

The data source providing auto-completion suggestions, or null if using the AutoCompleteItems collection.

AutoCompleteDisplayMember

Gets or sets the auto complete display member.

Declaration

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

Property Value

string

The property name used to display text for auto-completion items.

AutoCompleteDropDown

Gets the auto complete drop down.

Declaration

cs-api-definition
public RadPopupControlBase AutoCompleteDropDown { get; }

Property Value

RadPopupControlBase

The popup control that hosts the auto-completion dropdown list.

AutoCompleteItems

Gets a value specifying the complete items used for automatic completion.

Declaration

cs-api-definition
public RadListDataItemCollection AutoCompleteItems { get; }

Property Value

RadListDataItemCollection

The collection of items used for auto-completion when no data source is specified.

AutoCompleteMode

Gets or sets an option that controls how automatic completion works for the TextBox.

Declaration

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

Property Value

AutoCompleteMode

The auto-completion mode that determines how suggestions are presented to the user.

CanPerformAutoComplete

Gets a value indicating whether this text box can perform auto complete operation.

Declaration

cs-api-definition
protected virtual bool CanPerformAutoComplete { get; }

Property Value

bool

true if auto-completion is enabled and the text box is single-line; otherwise, false.

Caret

Gets the associated caret.

Declaration

cs-api-definition
public TextBoxControlCaret Caret { get; }

Property Value

TextBoxControlCaret

The text cursor element that indicates the insertion point.

CaretIndex

Gets or sets the caret position.

Declaration

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

Property Value

int

The zero-based index of the caret position within the text.

CharacterCasing

Gets or sets whether the TextBox element modifies the case of characters as they are typed.

Declaration

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

Property Value

CharacterCasing

The character casing mode applied to typed text.

ClearButton

Gets the clear button.

Declaration

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

Property Value

LightVisualButtonElement

The button element that allows users to quickly clear all text.

ContextMenu

Gets or sets the associated context menu.

Declaration

cs-api-definition
public RadContextMenu ContextMenu { get; set; }

Property Value

RadContextMenu

The context menu displayed on right-click, or null if no context menu is assigned.

DropDownMaxSize

Gets or sets the maximum size of the auto-complete dropdown.

Declaration

cs-api-definition
public Size DropDownMaxSize { get; set; }

Property Value

Size

The maximum size constraints for the dropdown, or Empty for no maximum size limit.

DropDownMinSize

Gets or sets the minimum size of the auto-complete dropdown.

Declaration

cs-api-definition
public Size DropDownMinSize { get; set; }

Property Value

Size

The minimum size constraints for the dropdown, or Empty for no minimum size limit.

EmbeddedLabel

Gets an instance of the corresponding embedded label.

Declaration

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

Property Value

LightVisualElement

The embedded label element displayed within the text box.

EmbeddedLabelAnimationSpeed

Gets or set the animation speed of the embedded label. The speed is an integer between 1(off) and 10(slowest) with default value of 8.

Declaration

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

Property Value

int

The animation speed from 1 (disabled) to 10 (slowest), with 8 as the default.

EmbeddedLabelBorderOffset

Gets or set the offset of the embedded label from the bottom border, when the label is down.

Declaration

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

Property Value

float

The offset distance in pixels from the bottom border when the label is in its lowered position.

EmbeddedLabelText

Gets or sets the text of the embedded label.

Declaration

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

Property Value

string

The text content displayed in the embedded label.

HideSelection

Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the element loses focus.

Declaration

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

Property Value

bool

true if selection should be hidden when unfocused; otherwise, false to keep selection visible.

HorizontalScrollBarState

Gets or sets when the horizontal scroll bar should appear in a multiline TextBox element.

Declaration

cs-api-definition
public ScrollState HorizontalScrollBarState { get; set; }

Property Value

ScrollState

The visibility state of the horizontal scroll bar.

InputHandler

Represents the associated keyboard and mouse input handler.

Declaration

cs-api-definition
public ITextBoxInputHandler InputHandler { get; set; }

Property Value

ITextBoxInputHandler

The input handler responsible for processing user interactions.

IsAutoCompleteDropDownOpen

Gets a value indicating whether this auto-complete drop down is open.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsAutoCompleteDropDownOpen { get; }

Property Value

bool

true if the auto-complete dropdown is currently displayed; otherwise, false.

IsReadOnly

Gets or sets a value indicating whether text in the text box is read-only.

Declaration

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

Property Value

bool

true if the text box is read-only and cannot be edited; otherwise, false.

IsReadOnlyCaretVisible

Gets or sets a value indicating whether the caret is visible in read only mode.

Declaration

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

Property Value

bool

true if the caret should be visible even when read-only; otherwise, false.

Lines

Gets or sets the lines of text in a text box element.

Declaration

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

Property Value

string[]

An array of strings representing each line of text in the text box.

ListElement

Gets the auto-complete list element.

Declaration

cs-api-definition
public RadTextBoxListElement ListElement { get; }

Property Value

RadTextBoxListElement

The list element that displays auto-completion suggestions.

MaxDropDownItemCount

Gets or sets the max count of visible items in auto-complete drop down.

Declaration

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

Property Value

int

The maximum number of items displayed simultaneously in the dropdown before scrolling is required.

MaxLength

Gets or sets the maximum number of characters the user can type or paste into the text box element.

Declaration

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

Property Value

int

The maximum number of characters allowed, or MaxValue for unlimited input.

Multiline

Gets or sets a value indicating whether this is a multiline text box.

Declaration

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

Property Value

bool

true if the text box accepts multiple lines of text; otherwise, false for single-line input.

Navigator

Gets or sets the navigator of the text position.

Declaration

cs-api-definition
public ITextBoxNavigator Navigator { get; set; }

Property Value

ITextBoxNavigator

The navigator responsible for text positioning and selection management.

NullText

Gets or sets the prompt text that is displayed when the text box contains no text.

Declaration

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

Property Value

string

The text to display when the text box is empty.

NullTextColor

Gets or sets the color of the null text.

Declaration

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

Property Value

Color

The color used to display the null text.

NullTextViewElement

Gets the view element of the null text.

Declaration

cs-api-definition
public TextBoxWrapPanel NullTextViewElement { get; }

Property Value

TextBoxWrapPanel

The panel element that displays placeholder text when the text box is empty.

PasswordChar

Gets or sets the character used to mask characters of a password in a single-line text box.

Declaration

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

Property Value

char

The character used to mask password input, or '\0' to display actual characters.

RepositionEmbeddedLabel

Gets or set whether to reposition the embedded label, when text box is empty.

Declaration

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

Property Value

bool

true if the embedded label should move when the text box becomes empty; otherwise, false.

SelectedText

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

Declaration

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

Property Value

string

The text currently selected by the user, or an empty string if no text is selected.

SelectionColor

Gets or sets the color of the selection.

Declaration

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

Property Value

Color

The background color used to highlight selected text.

SelectionLength

Gets or sets the number of characters selected in the text box.

Declaration

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

Property Value

int

The number of characters selected, or 0 if no text is selected.

SelectionOpacity

Gets or sets the selection opacity.

Declaration

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

Property Value

int

The opacity level of the selection highlight (0-255).

SelectionStart

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

The zero-based index of the first character in the current text selection.

ShowClearButton

Gets or sets a value indicating whether the clear button is shown.

Declaration

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

Property Value

bool

true if the clear button should be displayed; otherwise, false.

ShowEmbeddedLabel

Gets or sets the visibility of the embedded label. It is recommended to set AutoSize to true, when using the embedded label.

Declaration

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

Property Value

bool

true if the embedded label should be visible; otherwise, false.

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
[Browsable(false)]
public bool ShowNullText { get; set; }

Property Value

bool

true if null text should be displayed when focused and empty; otherwise, false.

Text

Gets or sets the current text in the text box element.

Declaration

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

Property Value

string

Overrides RadItem.Text

TextAlign

Gets or sets how the text is horizontally aligned in the element.

Declaration

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

Property Value

HorizontalAlignment

The horizontal alignment of text within the text box.

TextLength

Gets the length of text in the element.

Declaration

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

Property Value

int

The total number of characters in the text box.

UseSystemPasswordChar

Gets or sets a value indicating whether the text in view should appear as the default password character.

Declaration

cs-api-definition
public virtual bool UseSystemPasswordChar { get; set; }

Property Value

bool

true to use the system password character; otherwise, false to display actual characters.

VerticalScrollBarState

Gets or sets when the vertical scroll bar should appear in a multiline TextBox element.

Declaration

cs-api-definition
public ScrollState VerticalScrollBarState { get; set; }

Property Value

ScrollState

The visibility state of the vertical scroll bar.

WordWrap

Gets or sets a value indicating whether text wraps to the next line when it reaches the edge of the element.

Declaration

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

Property Value

bool

true if text should wrap at the element boundary; otherwise, false.

Methods

AppendText(string)

Appends text to the current text of a text box.

Declaration

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

Parameters

text

string

The text to append.

AppendText(string, bool)

Appends text to the current text of a text box and optionally selects it.

Declaration

cs-api-definition
public void AppendText(string text, bool select)

Parameters

text

string

The text to append.

select

bool

If set to true, selects the appended text.

ArrangeOverride(SizeF)

Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.

Declaration

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

Parameters

finalSize

SizeF

The final area within the parent that this element should use to arrange itself and its children.

Returns

SizeF

The actual size used by the element after arrangement.

Overrides ScrollViewElement<TextBoxViewElement>.ArrangeOverride(SizeF)

ArrangeViewElement(RectangleF)

Arranges the view element.

Declaration

cs-api-definition
protected override void ArrangeViewElement(RectangleF viewElementRect)

Parameters

viewElementRect

RectangleF

The view element rect.

Overrides ScrollViewElement<TextBoxViewElement>.ArrangeViewElement(RectangleF)

CanInsertText(string)

Determines whether the text can be inserted

Declaration

cs-api-definition
protected virtual bool CanInsertText(string text)

Parameters

text

string

The text.

Returns

bool

true if this text can be inserted; otherwise, false.

ClampOffset(int)

Clamps the offset to valid text position bounds.

Declaration

cs-api-definition
protected int ClampOffset(int offset)

Parameters

offset

int

The offset to validate and clamp.

Returns

int

A valid offset within the bounds of the text length.

Clear()

Clears all text from the text box element.

Declaration

cs-api-definition
public void Clear()

CloseDropDown()

Closes the auto-complete drop down.

Declaration

cs-api-definition
public void CloseDropDown()

CloseDropDown(RadPopupCloseReason)

Closes the drop down.

Declaration

cs-api-definition
public virtual void CloseDropDown(RadPopupCloseReason reason)

Parameters

reason

RadPopupCloseReason

The reason for closing the dropdown.

Copy()

Copies the current selection in the text box to the Clipboard.

Declaration

cs-api-definition
public virtual bool Copy()

Returns

bool

true if text was copied to the clipboard; otherwise, false.

CreateAutoCompleteDropDown()

Creates the auto-complete drop down.

Declaration

cs-api-definition
protected virtual RadPopupControlBase CreateAutoCompleteDropDown()

Returns

RadPopupControlBase

A new instance of RadPopupControlBase for hosting the auto-completion dropdown.

CreateCaret()

Creates the caret of the text box element.

Declaration

cs-api-definition
protected virtual TextBoxControlCaret CreateCaret()

Returns

TextBoxControlCaret

A new instance of TextBoxControlCaret for text position indication.

CreateChildElements()

Creates the child elements that comprise the text box control, including the view element, scrollbars, caret, and supporting components.

Declaration

cs-api-definition
protected override void CreateChildElements()

Overrides ScrollViewElement<TextBoxViewElement>.CreateChildElements()

CreateClearButton()

Creates the clear button element that allows users to quickly clear all text from the text box.

Declaration

cs-api-definition
protected virtual LightVisualButtonElement CreateClearButton()

Returns

LightVisualButtonElement

A new LightVisualButtonElement configured as a clear button.

CreateEmbeddedLabel()

Creates the embedded label element that can be displayed within the text box control.

Declaration

cs-api-definition
protected virtual LightVisualElement CreateEmbeddedLabel()

Returns

LightVisualElement

A new LightVisualElement configured as an embedded label.

CreateListElement()

Creates the auto-complete list element.

Declaration

cs-api-definition
protected virtual RadTextBoxListElement CreateListElement()

Returns

RadTextBoxListElement

A new instance of RadTextBoxListElement for displaying auto-completion suggestions.

CreateNullTextViewElement()

Creates an instance of TextBoxWrapPanel used to display placeholder text when the text box is empty.

Declaration

cs-api-definition
protected virtual TextBoxWrapPanel CreateNullTextViewElement()

Returns

TextBoxWrapPanel

A new TextBoxWrapPanel instance configured for null text display.

Cut()

Moves the current selection in the text box to the Clipboard.

Declaration

cs-api-definition
public virtual bool Cut()

Returns

bool

true if the operation was successful; otherwise, false.

Delete()

Deletes the selected text or character at the current position.

Declaration

cs-api-definition
public bool Delete()

Returns

bool

true if text was successfully deleted; otherwise, false.

Delete(bool)

Deletes the selected text or character at the current position.

Declaration

cs-api-definition
public virtual bool Delete(bool nextCharacter)

Parameters

nextCharacter

bool

If set to true, deletes the next character; otherwise, deletes the previous character.

Returns

bool

true if text was successfully deleted; otherwise, false.

Delete(bool, bool)

Deletes the selected text or character at the current position.

Declaration

cs-api-definition
public virtual bool Delete(bool nextCharacter, bool isControlPressed)

Parameters

nextCharacter

bool

If set to true, deletes the next character; otherwise, deletes the previous character.

isControlPressed

bool

If set to true and Control modifier key is pressed, deletes to the end of the word.

Returns

bool

true if text was successfully deleted; otherwise, false.

DeselectAll()

Specifies that the value of the SelectionLength property is zero so that no characters are selected in the element.

Declaration

cs-api-definition
public virtual bool DeselectAll()

Returns

bool

true if the selection was successfully cleared; otherwise, false.

DisposeUnmanagedResources()

Disposes of unmanaged resources used by the text box control element.

Declaration

cs-api-definition
protected override void DisposeUnmanagedResources()

Overrides DisposableObject.DisposeUnmanagedResources()

DpiScaleChanged(SizeF)

Called when the DPI scale factor changes. Updates the scale factor and notifies child elements.

Declaration

cs-api-definition
public override void DpiScaleChanged(SizeF scaleFactor)

Parameters

scaleFactor

SizeF

The new DPI scale factor.

Overrides RadElement.DpiScaleChanged(SizeF)

GetAutoCompleteDropDownLocation()

Gets the auto-complete drop down location.

Declaration

cs-api-definition
protected virtual Point GetAutoCompleteDropDownLocation()

Returns

Point

The screen coordinates where the auto-complete dropdown should be positioned.

GetAutoCompleteTextCondition(TextPosition, TextPosition)

Gets the text that is used as filter condition in auto-completion.

Declaration

cs-api-definition
protected virtual string GetAutoCompleteTextCondition(TextPosition startPosition, TextPosition endPosition)

Parameters

startPosition

TextPosition

The start position of the text range.

endPosition

TextPosition

The end position of the text range.

Returns

string

The text that will be used to filter auto-completion suggestions.

GetDropDownSize()

Gets the size of the auto-complete drop down.

Declaration

cs-api-definition
protected virtual Size GetDropDownSize()

Returns

Size

The calculated size for the auto-complete dropdown based on item count and constraints.

GetFirstAutoCompletePosition()

Gets the first position for auto-completion text within the view element.

Declaration

cs-api-definition
protected virtual TextPosition GetFirstAutoCompletePosition()

Returns

TextPosition

The text position representing the start of auto-completion.

GetLastAutoCompletePosition()

Gets the last position for auto-completion text within the view element.

Declaration

cs-api-definition
protected virtual TextPosition GetLastAutoCompletePosition()

Returns

TextPosition

The text position representing the end of auto-completion.

GetLines()

Gets the lines of the text box element.

Declaration

cs-api-definition
protected virtual string[] GetLines()

Returns

string[]

An array of strings representing each line in the text box.

HandleSuggestedTextChanged(SuggestedTextChangedEventArgs)

Handles processing of suggested text changes for auto-completion functionality.

Declaration

cs-api-definition
protected virtual void HandleSuggestedTextChanged(SuggestedTextChangedEventArgs e)

Parameters

e

SuggestedTextChangedEventArgs

The suggested text changed event arguments.

InitializeFields()

Initializes the default field values for the text box control element.

Declaration

cs-api-definition
protected override void InitializeFields()

Overrides ScrollViewElement<TextBoxViewElement>.InitializeFields()

Insert(string)

Inserts the text at current position.

Declaration

cs-api-definition
public virtual bool Insert(string text)

Parameters

text

string

The text to insert.

Returns

bool

true if the text was successfully inserted; otherwise, false.

IsInputKey(InputKeyEventArgs)

Determines whether the specified key is an input key that should be processed by the text box.

Declaration

cs-api-definition
protected override bool IsInputKey(InputKeyEventArgs e)

Parameters

e

InputKeyEventArgs

The input key event arguments containing key information.

Returns

bool

true if the key should be processed as input; otherwise, false.

Overrides RadElement.IsInputKey(InputKeyEventArgs)

IsValidAutoCompletePosition()

Determines whether the current position is valid for the auto-complete operation

Declaration

cs-api-definition
protected virtual bool IsValidAutoCompletePosition()

Returns

bool

true if [is valid auto complete position]; otherwise, false.

MeasureOverride(SizeF)

Measures the desired size of the element by calculating the space needed for content, padding, and borders.

Declaration

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

Parameters

availableSize

SizeF

The available space that a parent element can allocate to this element.

Returns

SizeF

The desired size of the element including content, padding, and border space.

Overrides ScrollViewElement<TextBoxViewElement>.MeasureOverride(SizeF)

MeasureViewElement(SizeF)

Declaration

cs-api-definition
protected override void MeasureViewElement(SizeF availableSize)

Parameters

availableSize

SizeF

Overrides ScrollViewElement<TextBoxViewElement>.MeasureViewElement(SizeF)

OnAutoCompleteDropDownClosed(RadAutoCompleteDropDownClosedEventArgs)

Called when the auto-complete dropdown is closed.

Declaration

cs-api-definition
protected virtual void OnAutoCompleteDropDownClosed(RadAutoCompleteDropDownClosedEventArgs e)

Parameters

e

RadAutoCompleteDropDownClosedEventArgs

The auto-complete dropdown closed event arguments.

OnBoundsChanged(RadPropertyChangedEventArgs)

Called when the bounds of the element have changed.

Declaration

cs-api-definition
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The event arguments containing bound change information.

Overrides UIItemBase.OnBoundsChanged(RadPropertyChangedEventArgs)

OnContextMenuOpening(RadContextMenu)

Called when the context menu is opening.

Declaration

cs-api-definition
protected bool OnContextMenuOpening(RadContextMenu menu)

Parameters

menu

RadContextMenu

The context menu being opened.

Returns

bool

true if the menu should be displayed; otherwise, false to cancel the operation.

OnContextMenuOpening(TreeBoxContextMenuOpeningEventArgs)

Raises the ContextMenuOpening event.

Declaration

cs-api-definition
protected virtual void OnContextMenuOpening(TreeBoxContextMenuOpeningEventArgs e)

Parameters

e

TreeBoxContextMenuOpeningEventArgs

The TreeBoxContextMenuOpeningEventArgs instance containing the event data.

OnDoubleClick(EventArgs)

Called when the element is double-clicked.

Declaration

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

Parameters

e

EventArgs

The event arguments.

Overrides RadElement.OnDoubleClick(EventArgs)

OnIMECompositionEnded()

Raises the IMECompositionEnded event when Input Method Editor composition completes.

Declaration

cs-api-definition
protected virtual void OnIMECompositionEnded()

OnIMECompositionResult(string)

Raises the IMECompositionResult event when Input Method Editor produces a result.

Declaration

cs-api-definition
protected virtual void OnIMECompositionResult(string result)

Parameters

result

string

The composition result text.

OnIMECompositionStarted()

Raises the IMECompositionStarted event when Input Method Editor composition begins.

Declaration

cs-api-definition
protected virtual void OnIMECompositionStarted()

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

The key event arguments.

Overrides RadItem.OnKeyDown(KeyEventArgs)

OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

Declaration

cs-api-definition
protected override void OnKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

The key press event arguments.

Overrides RadItem.OnKeyPress(KeyPressEventArgs)

OnKeyUp(KeyEventArgs)

Raises the KeyUp event.

Declaration

cs-api-definition
protected override void OnKeyUp(KeyEventArgs e)

Parameters

e

KeyEventArgs

The key event arguments.

Overrides RadItem.OnKeyUp(KeyEventArgs)

OnLoaded()

Called when the element has been loaded and is ready for interaction.

Declaration

cs-api-definition
protected override void OnLoaded()

Overrides LightVisualElement.OnLoaded()

OnMouseDown(MouseEventArgs)

Called when a mouse button is pressed down over the item.

Declaration

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

Parameters

e

MouseEventArgs

The mouse event arguments.

Overrides RadItem.OnMouseDown(MouseEventArgs)

OnMouseEnter(EventArgs)

Called when the mouse enters the element bounds.

Declaration

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

Parameters

e

EventArgs

The event arguments.

Overrides RadElement.OnMouseEnter(EventArgs)

OnMouseLeave(EventArgs)

Called when the mouse leaves the element bounds.

Declaration

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

Parameters

e

EventArgs

The event arguments.

Overrides RadItem.OnMouseLeave(EventArgs)

OnMouseMove(MouseEventArgs)

Called when the mouse moves over the element.

Declaration

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

Parameters

e

MouseEventArgs

The mouse event arguments.

Overrides LightVisualElement.OnMouseMove(MouseEventArgs)

OnMouseUp(MouseEventArgs)

Called when a mouse button is released over the element.

Declaration

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

Parameters

e

MouseEventArgs

The mouse event arguments.

Overrides RadItem.OnMouseUp(MouseEventArgs)

OnMouseWheel(MouseEventArgs)

Called when the mouse wheel is scrolled over the element.

Declaration

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

Parameters

e

MouseEventArgs

The mouse event arguments.

Overrides RadElement.OnMouseWheel(MouseEventArgs)

OnPropertyChanged(RadPropertyChangedEventArgs)

Called when a property of the element has changed.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The property changed event arguments.

Overrides LightVisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)

OnUnloaded(ComponentThemableElementTree)

Called when the element is being unloaded from the visual tree.

Declaration

cs-api-definition
protected override void OnUnloaded(ComponentThemableElementTree oldTree)

Parameters

oldTree

ComponentThemableElementTree

The component tree from which the element is being removed.

Overrides RadElement.OnUnloaded(ComponentThemableElementTree)

PaintText(IGraphics)

Overrides the text painting to prevent default text rendering since text is handled by the view element.

Declaration

cs-api-definition
protected override void PaintText(IGraphics graphics)

Parameters

graphics

IGraphics

The graphics context for painting.

Overrides LightVisualElement.PaintText(IGraphics)

Paste()

Replaces the current selection in the text box with the contents of the Clipboard.

Declaration

cs-api-definition
public virtual bool Paste()

Returns

bool

true if text was pasted from the clipboard; otherwise, false.

PerformAutoComplete(EditOperation)

Performs the auto-complete for concrete operation.

Declaration

cs-api-definition
protected void PerformAutoComplete(EditOperation context)

Parameters

context

EditOperation

The context.

PerformAutoCompleteOverride(EditOperation)

Performs the auto complete override.

Declaration

cs-api-definition
protected virtual void PerformAutoCompleteOverride(EditOperation context)

Parameters

context

EditOperation

The context.

Redo()

Redo the last undo action.

Declaration

cs-api-definition
public virtual bool Redo()

Returns

bool

true if an action was successfully redone; otherwise, false.

ScrollToCaret()

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

Declaration

cs-api-definition
public void ScrollToCaret()

Select(int, int)

Selects a range of text in the text box.

Declaration

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

Parameters

start

int

The zero-based starting position of the text selection.

length

int

The number of characters to select.

SelectAll()

Selects all text in the text box element.

Declaration

cs-api-definition
public void SelectAll()

SetLines(string[])

Sets the lines of the text box element.

Declaration

cs-api-definition
protected virtual void SetLines(string[] value)

Parameters

value

string[]

The array of strings to set as text lines.

ShowDropDown(Point)

Shows the drop down.

Declaration

cs-api-definition
public virtual void ShowDropDown(Point location)

Parameters

location

Point

The screen location where the dropdown should appear.

ToggleTextPrimitive(RadProperty)

Toggles the text primitive display (overridden to prevent default text rendering).

Declaration

cs-api-definition
protected override void ToggleTextPrimitive(RadProperty property)

Parameters

property

RadProperty

The property being toggled.

Overrides LightVisualElement.ToggleTextPrimitive(RadProperty)

Undo()

Undo the last action.

Declaration

cs-api-definition
public virtual bool Undo()

Returns

bool

true if an action was successfully undone; otherwise, false.

Events

ContextMenuOpening

Occurs when the context menu is opening.

Declaration

cs-api-definition
public event TreeBoxContextMenuOpeningEventHandler ContextMenuOpening

Event Value

TreeBoxContextMenuOpeningEventHandler

CreateTextBlock

Occurs when an instance of ITextBlock is created.

Declaration

cs-api-definition
public event CreateTextBlockEventHandler CreateTextBlock

Event Value

CreateTextBlockEventHandler

IMECompositionEnded

Fired when the Input Method Editor completes the composition.

Declaration

cs-api-definition
public event EventHandler IMECompositionEnded

Event Value

EventHandler

IMECompositionResult

Fired when the Input Method Editor has a result ready. For languages like Korean this might happen before the composition has ended.

Declaration

cs-api-definition
public event EventHandler<IMECompositionResultEventArgs> IMECompositionResult

Event Value

EventHandler<IMECompositionResultEventArgs>

IMECompositionStarted

Fired when the Input Method Editor starts the composition.

Declaration

cs-api-definition
public event EventHandler IMECompositionStarted

Event Value

EventHandler

SelectionChanged

Occurs when text selection is changed.

Declaration

cs-api-definition
public event SelectionChangedEventHandler SelectionChanged

Event Value

SelectionChangedEventHandler

SelectionChanging

Occurs when text selection is changing.

Declaration

cs-api-definition
public event SelectionChangingEventHandler SelectionChanging

Event Value

SelectionChangingEventHandler

TextBlockFormatting

Occurs when text block is formatting.

Declaration

cs-api-definition
public event TextBlockFormattingEventHandler TextBlockFormatting

Event Value

TextBlockFormattingEventHandler

In this article
DefinitionConstructorsRadTextBoxControlElement()PropertiesAcceptsReturnAcceptsTabAutoCompleteDataSourceAutoCompleteDisplayMemberAutoCompleteDropDownAutoCompleteItemsAutoCompleteModeCanPerformAutoCompleteCaretCaretIndexCharacterCasingClearButtonContextMenuDropDownMaxSizeDropDownMinSizeEmbeddedLabelEmbeddedLabelAnimationSpeedEmbeddedLabelBorderOffsetEmbeddedLabelTextHideSelectionHorizontalScrollBarStateInputHandlerIsAutoCompleteDropDownOpenIsReadOnlyIsReadOnlyCaretVisibleLinesListElementMaxDropDownItemCountMaxLengthMultilineNavigatorNullTextNullTextColorNullTextViewElementPasswordCharRepositionEmbeddedLabelSelectedTextSelectionColorSelectionLengthSelectionOpacitySelectionStartShowClearButtonShowEmbeddedLabelShowNullTextTextTextAlignTextLengthUseSystemPasswordCharVerticalScrollBarStateWordWrapMethodsAppendText(string)AppendText(string, bool)ArrangeOverride(SizeF)ArrangeViewElement(RectangleF)CanInsertText(string)ClampOffset(int)Clear()CloseDropDown()CloseDropDown(RadPopupCloseReason)Copy()CreateAutoCompleteDropDown()CreateCaret()CreateChildElements()CreateClearButton()CreateEmbeddedLabel()CreateListElement()CreateNullTextViewElement()Cut()Delete()Delete(bool)Delete(bool, bool)DeselectAll()DisposeUnmanagedResources()DpiScaleChanged(SizeF)GetAutoCompleteDropDownLocation()GetAutoCompleteTextCondition(TextPosition, TextPosition)GetDropDownSize()GetFirstAutoCompletePosition()GetLastAutoCompletePosition()GetLines()HandleSuggestedTextChanged(SuggestedTextChangedEventArgs)InitializeFields()Insert(string)IsInputKey(InputKeyEventArgs)IsValidAutoCompletePosition()MeasureOverride(SizeF)MeasureViewElement(SizeF)OnAutoCompleteDropDownClosed(RadAutoCompleteDropDownClosedEventArgs)OnBoundsChanged(RadPropertyChangedEventArgs)OnContextMenuOpening(RadContextMenu)OnContextMenuOpening(TreeBoxContextMenuOpeningEventArgs)OnDoubleClick(EventArgs)OnIMECompositionEnded()OnIMECompositionResult(string)OnIMECompositionStarted()OnKeyDown(KeyEventArgs)OnKeyPress(KeyPressEventArgs)OnKeyUp(KeyEventArgs)OnLoaded()OnMouseDown(MouseEventArgs)OnMouseEnter(EventArgs)OnMouseLeave(EventArgs)OnMouseMove(MouseEventArgs)OnMouseUp(MouseEventArgs)OnMouseWheel(MouseEventArgs)OnPropertyChanged(RadPropertyChangedEventArgs)OnUnloaded(ComponentThemableElementTree)PaintText(IGraphics)Paste()PerformAutoComplete(EditOperation)PerformAutoCompleteOverride(EditOperation)Redo()ScrollToCaret()Select(int, int)SelectAll()SetLines(string[])ShowDropDown(Point)ToggleTextPrimitive(RadProperty)Undo()EventsContextMenuOpeningCreateTextBlockIMECompositionEndedIMECompositionResultIMECompositionStartedSelectionChangedSelectionChangingTextBlockFormatting
Not finding the help you need?
Contact Support