Class RadButtonTextBox
Represents a text box control with customizable buttons on the left and right sides that can be used for enhanced input scenarios requiring additional actions or functionality.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadButtonTextBox : RadTextBox, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, ISupportRootUIAutomation
Constructors
RadButtonTextBox()
Initializes a new instance of the RadButtonTextBox class with default settings and empty button collections.
Declaration
public RadButtonTextBox()
Properties
DefaultElementsSpacing
Gets or sets the default spacing between elements in the control, measured in pixels, which affects the visual separation of buttons and the text box.
Declaration
public int DefaultElementsSpacing { get; set; }
Property Value
System.Int32
|
LeftButtonItems
Gets the collection of button items that are displayed on the left side of the text box, providing additional interactive elements before the input area.
Declaration
[RadEditItemsAction]
public RadItemOwnerCollection LeftButtonItems { get; }
Property Value
RadItemOwnerCollection
|
RightButtonItems
Gets the collection of button items that are displayed on the right side of the text box, allowing users to add interactive elements for enhanced functionality.
Declaration
[RadEditItemsAction]
public RadItemOwnerCollection RightButtonItems { get; }
Property Value
RadItemOwnerCollection
|
ShowTextBox
Gets or sets a value indicating whether the inner text box is visible, allowing the control to function as a button-only container when set to false.
Declaration
public bool ShowTextBox { get; set; }
Property Value
System.Boolean
|
ThemeClassName
Gets the theme class name used by the theming system to apply visual styles, which is inherited from the base RadTextBox for consistent appearance.
Declaration
public override string ThemeClassName { get; }
Property Value
System.String
|
Overrides
Methods
CreateTextBoxElement()
Creates and returns a new RadButtonTextBoxElement instance that serves as the core element for this control, providing the specialized functionality for button management.
Declaration
protected override RadTextBoxElement CreateTextBoxElement()
Returns
RadTextBoxElement
A RadButtonTextBoxElement instance configured for this control. |
Overrides
Events
ItemClicked
Occurs when any button item within the left or right button collections is clicked, providing a unified event handling mechanism for all button interactions.
Declaration
public event EventHandler ItemClicked
Event Type
System.EventHandler
|