Class RadTextBox
Represents a RadTextBox. The RadTextBox control serves as a simple wrapper for RadTextBoxElement which in turn wraps RadTextBoxItem. All logic and presentation features are implemented in a parallel hierarchy of objects. For this reason, RadTextBoxElement may be nested in any other telerik control, item, or element. RadTextBox acts to transfer events to and from its corresponding instance of the RadTextBoxElement.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadTextBox : RadTextBoxBase, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadTextBox()
Represents RadTextBox's constructor
Declaration
public RadTextBox()
Properties
CausesValidation
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
Declaration
public bool CausesValidation { get; set; }
Property Value
System.Boolean
true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. |
CreateParams
Declaration
protected override CreateParams CreateParams { get; }
Property Value
System.Windows.Forms.CreateParams
|
EmbeddedLabelText
Gets or sets the text of the embedded label.
Declaration
public string EmbeddedLabelText { get; set; }
Property Value
System.String
|
NullText
Gets or sets the text that is displayed when the ComboBox contains a null reference.
Declaration
[RadDefaultValue("NullText", typeof(RadTextBoxItem))]
public string NullText { get; set; }
Property Value
System.String
|
ShowClearButton
Gets or sets a value indicating whether the clear button is shown.
Declaration
public bool ShowClearButton { get; set; }
Property Value
System.Boolean
|
ShowEmbeddedLabel
Gets or sets a value indicating whether the embedded label is shown.
Declaration
public bool ShowEmbeddedLabel { get; set; }
Property Value
System.Boolean
|
TextBoxElement
Gets the instance of RadTextBoxElement wrapped by this control. RadTextBoxElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadTextBox.
Declaration
public RadTextBoxElement TextBoxElement { get; }
Property Value
RadTextBoxElement
|
UseGenericBorderPaint
Gets or sets a value indicating whether to show the bottom part of characters, clipped due to font name or size particularities
Declaration
[RadDescription("UseGenericBorderPaint", typeof(RadTextBoxElement))]
[RadDefaultValue("UseGenericBorderPaint", typeof(RadTextBoxElement))]
public bool UseGenericBorderPaint { get; set; }
Property Value
System.Boolean
|
UseSystemPasswordChar
Gets or sets a value indicating whether the text should appear as the default password character.
Declaration
public bool UseSystemPasswordChar { get; set; }
Property Value
System.Boolean
|
Methods
ControlDefinesThemeForElement(RadElement)
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement
element
|
Returns
System.Boolean
|
Overrides
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.Windows.Forms.AccessibleObject
|
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
CreateTextBoxElement()
Focus()
Sets input focus to the control.
Declaration
public bool Focus()
Returns
System.Boolean
true if the input focus request was successful; otherwise, false. |
InitializeTextElement()
Initializes textbox's children
Declaration
protected override void InitializeTextElement()
Overrides
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()