New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
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

Initializes a new instance of the RadTextBoxControlElement class.

C#
public RadTextBoxControlElement()

Properties

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.

C#
public bool AcceptsReturn { get; set; }
Property Value:

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

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.

C#
public bool AcceptsTab { get; set; }
Property Value:

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

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

C#
public object AutoCompleteDataSource { get; set; }
Property Value:

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

Gets or sets the auto complete display member.

C#
public string AutoCompleteDisplayMember { get; set; }
Property Value:

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

Gets the auto complete drop down.

C#
public RadPopupControlBase AutoCompleteDropDown { get; }
Property Value:

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

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

C#
public RadListDataItemCollection AutoCompleteItems { get; }
Property Value:

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

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

C#
public AutoCompleteMode AutoCompleteMode { get; set; }
Property Value:

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

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

C#
protected virtual bool CanPerformAutoComplete { get; }
Property Value:

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

Gets the associated caret.

C#
public TextBoxControlCaret Caret { get; }
Property Value:

The text cursor element that indicates the insertion point.

Gets or sets the caret position.

C#
public int CaretIndex { get; set; }
Property Value:

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

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

C#
public CharacterCasing CharacterCasing { get; set; }
Property Value:

The character casing mode applied to typed text.

Gets the clear button.

C#
public LightVisualButtonElement ClearButton { get; }
Property Value:

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

Gets or sets the associated context menu.

C#
public RadContextMenu ContextMenu { get; set; }
Property Value:

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

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

C#
public Size DropDownMaxSize { get; set; }
Property Value:

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

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

C#
public Size DropDownMinSize { get; set; }
Property Value:

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

Gets an instance of the corresponding embedded label.

C#
public LightVisualElement EmbeddedLabel { get; }
Property Value:

The embedded label element displayed within the text box.

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.

C#
public int EmbeddedLabelAnimationSpeed { get; set; }
Property Value:

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

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

C#
public float EmbeddedLabelBorderOffset { get; set; }
Property Value:

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

Gets or sets the text of the embedded label.

C#
public string EmbeddedLabelText { get; set; }
Property Value:

The text content displayed in the embedded label.

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

C#
public bool HideSelection { get; set; }
Property Value:

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

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

C#
public ScrollState HorizontalScrollBarState { get; set; }
Property Value:

The visibility state of the horizontal scroll bar.

Represents the associated keyboard and mouse input handler.

C#
public ITextBoxInputHandler InputHandler { get; set; }
Property Value:

The input handler responsible for processing user interactions.

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

C#
[Browsable(false)]
public bool IsAutoCompleteDropDownOpen { get; }
Property Value:

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

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

C#
public bool IsReadOnly { get; set; }
Property Value:

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

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

C#
public bool IsReadOnlyCaretVisible { get; set; }
Property Value:

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

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

C#
public string[] Lines { get; set; }
Property Value:

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

Gets the auto-complete list element.

C#
public RadTextBoxListElement ListElement { get; }
Property Value:

The list element that displays auto-completion suggestions.

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

C#
public int MaxDropDownItemCount { get; set; }
Property Value:

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

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

C#
public int MaxLength { get; set; }
Property Value:

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

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

C#
public bool Multiline { get; set; }
Property Value:

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

Gets or sets the navigator of the text position.

C#
public ITextBoxNavigator Navigator { get; set; }
Property Value:

The navigator responsible for text positioning and selection management.

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

C#
public string NullText { get; set; }
Property Value:

The text to display when the text box is empty.

Gets or sets the color of the null text.

C#
public Color NullTextColor { get; set; }
Property Value:

The color used to display the null text.

Gets the view element of the null text.

C#
public TextBoxWrapPanel NullTextViewElement { get; }
Property Value:

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

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

C#
public virtual char PasswordChar { get; set; }
Property Value:

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

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

C#
public bool RepositionEmbeddedLabel { get; set; }
Property Value:

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

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

C#
public string SelectedText { get; set; }
Property Value:

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

Gets or sets the color of the selection.

C#
public Color SelectionColor { get; set; }
Property Value:

The background color used to highlight selected text.

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

C#
public int SelectionLength { get; set; }
Property Value:

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

Gets or sets the selection opacity.

C#
public int SelectionOpacity { get; set; }
Property Value:

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

Gets or sets the starting point of text selected in the text box.

C#
public int SelectionStart { get; set; }
Property Value:

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

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

C#
public bool ShowClearButton { get; set; }
Property Value:

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

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

C#
public bool ShowEmbeddedLabel { get; set; }
Property Value:

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

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

C#
[Browsable(false)]
public bool ShowNullText { get; set; }
Property Value:

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

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

C#
public override string Text { get; set; }

Overrides: RadItem.Text

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

C#
public HorizontalAlignment TextAlign { get; set; }
Property Value:

The horizontal alignment of text within the text box.

Gets the length of text in the element.

C#
public int TextLength { get; }
Property Value:

The total number of characters in the text box.

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

C#
public virtual bool UseSystemPasswordChar { get; set; }
Property Value:

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

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

C#
public ScrollState VerticalScrollBarState { get; set; }
Property Value:

The visibility state of the vertical scroll bar.

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

C#
public bool WordWrap { get; set; }
Property Value:

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

Methods

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

C#
public void AppendText(string text, bool select)
Parameters:textstring

The text to append.

selectbool

If set to true, selects the appended text.

Appends text to the current text of a text box.

C#
public void AppendText(string text)
Parameters:textstring

The text to append.

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

C#
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters:finalSizeSizeF

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)

Arranges the view element.

C#
protected override void ArrangeViewElement(RectangleF viewElementRect)
Parameters:viewElementRectRectangleF

The view element rect.

Overrides: ScrollViewElement<TextBoxViewElement>.ArrangeViewElement(RectangleF)

Determines whether the text can be inserted

C#
protected virtual bool CanInsertText(string text)
Parameters:textstring

The text.

Returns:

bool

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

Clamps the offset to valid text position bounds.

C#
protected int ClampOffset(int offset)
Parameters:offsetint

The offset to validate and clamp.

Returns:

int

A valid offset within the bounds of the text length.

Clears all text from the text box element.

C#
public void Clear()

Closes the auto-complete drop down.

C#
public void CloseDropDown()

Closes the drop down.

C#
public virtual void CloseDropDown(RadPopupCloseReason reason)
Parameters:reasonRadPopupCloseReason

The reason for closing the dropdown.

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

C#
public virtual bool Copy()
Returns:

bool

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

Creates the auto-complete drop down.

C#
protected virtual RadPopupControlBase CreateAutoCompleteDropDown()
Returns:

RadPopupControlBase

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

Creates the caret of the text box element.

C#
protected virtual TextBoxControlCaret CreateCaret()
Returns:

TextBoxControlCaret

A new instance of TextBoxControlCaret for text position indication.

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

C#
protected override void CreateChildElements()

Overrides: ScrollViewElement<TextBoxViewElement>.CreateChildElements()

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

C#
protected virtual LightVisualButtonElement CreateClearButton()
Returns:

LightVisualButtonElement

A new LightVisualButtonElement configured as a clear button.

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

C#
protected virtual LightVisualElement CreateEmbeddedLabel()
Returns:

LightVisualElement

A new LightVisualElement configured as an embedded label.

Creates the auto-complete list element.

C#
protected virtual RadTextBoxListElement CreateListElement()
Returns:

RadTextBoxListElement

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

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

C#
protected virtual TextBoxWrapPanel CreateNullTextViewElement()
Returns:

TextBoxWrapPanel

A new TextBoxWrapPanel instance configured for null text display.

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

C#
public virtual bool Cut()
Returns:

bool

true if the operation was successful; otherwise, false.

Deletes the selected text or character at the current position.

C#
public bool Delete()
Returns:

bool

true if text was successfully deleted; otherwise, false.

Deletes the selected text or character at the current position.

C#
public virtual bool Delete(bool nextCharacter, bool isControlPressed)
Parameters:nextCharacterbool

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

isControlPressedbool

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.

Deletes the selected text or character at the current position.

C#
public virtual bool Delete(bool nextCharacter)
Parameters:nextCharacterbool

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

Returns:

bool

true if text was successfully deleted; otherwise, false.

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

C#
public virtual bool DeselectAll()
Returns:

bool

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

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

C#
protected override void DisposeUnmanagedResources()

Overrides: DisposableObject.DisposeUnmanagedResources()

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

C#
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters:scaleFactorSizeF

The new DPI scale factor.

Overrides: RadElement.DpiScaleChanged(SizeF)

Gets the auto-complete drop down location.

C#
protected virtual Point GetAutoCompleteDropDownLocation()
Returns:

Point

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

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

C#
protected virtual string GetAutoCompleteTextCondition(TextPosition startPosition, TextPosition endPosition)
Parameters:startPositionTextPosition

The start position of the text range.

endPositionTextPosition

The end position of the text range.

Returns:

string

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

Gets the size of the auto-complete drop down.

C#
protected virtual Size GetDropDownSize()
Returns:

Size

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

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

C#
protected virtual TextPosition GetFirstAutoCompletePosition()
Returns:

TextPosition

The text position representing the start of auto-completion.

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

C#
protected virtual TextPosition GetLastAutoCompletePosition()
Returns:

TextPosition

The text position representing the end of auto-completion.

Gets the lines of the text box element.

C#
protected virtual string[] GetLines()
Returns:

string[]

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

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

C#
protected virtual void HandleSuggestedTextChanged(SuggestedTextChangedEventArgs e)
Parameters:eSuggestedTextChangedEventArgs

The suggested text changed event arguments.

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

C#
protected override void InitializeFields()

Overrides: ScrollViewElement<TextBoxViewElement>.InitializeFields()

Inserts the text at current position.

C#
public virtual bool Insert(string text)
Parameters:textstring

The text to insert.

Returns:

bool

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

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

C#
protected override bool IsInputKey(InputKeyEventArgs e)
Parameters:eInputKeyEventArgs

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)

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

C#
protected virtual bool IsValidAutoCompletePosition()
Returns:

bool

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

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

C#
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters:availableSizeSizeF

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)

C#
protected override void MeasureViewElement(SizeF availableSize)
Parameters:availableSizeSizeF

Overrides: ScrollViewElement<TextBoxViewElement>.MeasureViewElement(SizeF)

Called when the auto-complete dropdown is closed.

C#
protected virtual void OnAutoCompleteDropDownClosed(RadAutoCompleteDropDownClosedEventArgs e)
Parameters:eRadAutoCompleteDropDownClosedEventArgs

The auto-complete dropdown closed event arguments.

Called when the bounds of the element have changed.

C#
protected override void OnBoundsChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

The event arguments containing bound change information.

Overrides: UIItemBase.OnBoundsChanged(RadPropertyChangedEventArgs)

Called when the context menu is opening.

C#
protected bool OnContextMenuOpening(RadContextMenu menu)
Parameters:menuRadContextMenu

The context menu being opened.

Returns:

bool

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

Raises the ContextMenuOpening event.

C#
protected virtual void OnContextMenuOpening(TreeBoxContextMenuOpeningEventArgs e)
Parameters:eTreeBoxContextMenuOpeningEventArgs

The TreeBoxContextMenuOpeningEventArgs instance containing the event data.

Called when the element is double-clicked.

C#
protected override void OnDoubleClick(EventArgs e)
Parameters:eEventArgs

The event arguments.

Overrides: RadElement.OnDoubleClick(EventArgs)

Raises the IMECompositionEnded event when Input Method Editor composition completes.

C#
protected virtual void OnIMECompositionEnded()

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

C#
protected virtual void OnIMECompositionResult(string result)
Parameters:resultstring

The composition result text.

Raises the IMECompositionStarted event when Input Method Editor composition begins.

C#
protected virtual void OnIMECompositionStarted()

Raises the KeyDown event.

C#
protected override void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event arguments.

Overrides: RadItem.OnKeyDown(KeyEventArgs)

Raises the KeyPress event.

C#
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters:eKeyPressEventArgs

The key press event arguments.

Overrides: RadItem.OnKeyPress(KeyPressEventArgs)

Raises the KeyUp event.

C#
protected override void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event arguments.

Overrides: RadItem.OnKeyUp(KeyEventArgs)

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

C#
protected override void OnLoaded()

Overrides: LightVisualElement.OnLoaded()

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

C#
protected override void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: RadItem.OnMouseDown(MouseEventArgs)

Called when the mouse enters the element bounds.

C#
protected override void OnMouseEnter(EventArgs e)
Parameters:eEventArgs

The event arguments.

Overrides: RadElement.OnMouseEnter(EventArgs)

Called when the mouse leaves the element bounds.

C#
protected override void OnMouseLeave(EventArgs e)
Parameters:eEventArgs

The event arguments.

Overrides: RadItem.OnMouseLeave(EventArgs)

Called when the mouse moves over the element.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: LightVisualElement.OnMouseMove(MouseEventArgs)

Called when a mouse button is released over the element.

C#
protected override void OnMouseUp(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: RadItem.OnMouseUp(MouseEventArgs)

Called when the mouse wheel is scrolled over the element.

C#
protected override void OnMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

The mouse event arguments.

Overrides: RadElement.OnMouseWheel(MouseEventArgs)

Called when a property of the element has changed.

C#
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters:eRadPropertyChangedEventArgs

The property changed event arguments.

Overrides: LightVisualElement.OnPropertyChanged(RadPropertyChangedEventArgs)

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

C#
protected override void OnUnloaded(ComponentThemableElementTree oldTree)
Parameters:oldTreeComponentThemableElementTree

The component tree from which the element is being removed.

Overrides: RadElement.OnUnloaded(ComponentThemableElementTree)

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

C#
protected override void PaintText(IGraphics graphics)
Parameters:graphicsIGraphics

The graphics context for painting.

Overrides: LightVisualElement.PaintText(IGraphics)

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

C#
public virtual bool Paste()
Returns:

bool

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

Performs the auto-complete for concrete operation.

C#
protected void PerformAutoComplete(EditOperation context)
Parameters:contextEditOperation

The context.

Performs the auto complete override.

C#
protected virtual void PerformAutoCompleteOverride(EditOperation context)
Parameters:contextEditOperation

The context.

Redo the last undo action.

C#
public virtual bool Redo()
Returns:

bool

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

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

C#
public void ScrollToCaret()

Selects a range of text in the text box.

C#
public void Select(int start, int length)
Parameters:startint

The zero-based starting position of the text selection.

lengthint

The number of characters to select.

Selects all text in the text box element.

C#
public void SelectAll()

Sets the lines of the text box element.

C#
protected virtual void SetLines(string[] value)
Parameters:valuestring[]

The array of strings to set as text lines.

Shows the drop down.

C#
public virtual void ShowDropDown(Point location)
Parameters:locationPoint

The screen location where the dropdown should appear.

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

C#
protected override void ToggleTextPrimitive(RadProperty property)
Parameters:propertyRadProperty

The property being toggled.

Overrides: LightVisualElement.ToggleTextPrimitive(RadProperty)

Undo the last action.

C#
public virtual bool Undo()
Returns:

bool

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

Events

Occurs when the context menu is opening.

C#
public event TreeBoxContextMenuOpeningEventHandler ContextMenuOpening

Occurs when an instance of ITextBlock is created.

C#
public event CreateTextBlockEventHandler CreateTextBlock

Fired when the Input Method Editor completes the composition.

C#
public event EventHandler IMECompositionEnded

IMECompositionResult

EventHandler<IMECompositionResultEventArgs>

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

C#
public event EventHandler<IMECompositionResultEventArgs> IMECompositionResult

Fired when the Input Method Editor starts the composition.

C#
public event EventHandler IMECompositionStarted

Occurs when text selection is changed.

C#
public event SelectionChangedEventHandler SelectionChanged

Occurs when text selection is changing.

C#
public event SelectionChangingEventHandler SelectionChanging

Occurs when text block is formatting.

C#
public event TextBlockFormattingEventHandler TextBlockFormatting
In this article
DefinitionConstructorsRadTextBoxControlElement()PropertiesAcceptsReturnAcceptsTabAutoCompleteDataSourceAutoCompleteDisplayMemberAutoCompleteDropDownAutoCompleteItemsAutoCompleteModeCanPerformAutoCompleteCaretCaretIndexCharacterCasingClearButtonContextMenuDropDownMaxSizeDropDownMinSizeEmbeddedLabelEmbeddedLabelAnimationSpeedEmbeddedLabelBorderOffsetEmbeddedLabelTextHideSelectionHorizontalScrollBarStateInputHandlerIsAutoCompleteDropDownOpenIsReadOnlyIsReadOnlyCaretVisibleLinesListElementMaxDropDownItemCountMaxLengthMultilineNavigatorNullTextNullTextColorNullTextViewElementPasswordCharRepositionEmbeddedLabelSelectedTextSelectionColorSelectionLengthSelectionOpacitySelectionStartShowClearButtonShowEmbeddedLabelShowNullTextTextTextAlignTextLengthUseSystemPasswordCharVerticalScrollBarStateWordWrapMethodsAppendText(string, bool)AppendText(string)ArrangeOverride(SizeF)ArrangeViewElement(RectangleF)CanInsertText(string)ClampOffset(int)Clear()CloseDropDown()CloseDropDown(RadPopupCloseReason)Copy()CreateAutoCompleteDropDown()CreateCaret()CreateChildElements()CreateClearButton()CreateEmbeddedLabel()CreateListElement()CreateNullTextViewElement()Cut()Delete()Delete(bool, bool)Delete(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