HostedTextBoxBase
The TextBox control that is hosted by default by RadTextBoxItem. Children of this class can be passed to RadTextBoxItem in order to customize the hosted text box.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class HostedTextBoxBase : TextBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentControlTextBoxBaseTextBoxHostedTextBoxBase...
Implements:
Inherited Members
Constructors
public HostedTextBoxBase()
Properties
Controls whether the text of the edit control can span more than one line.
public override bool Multiline { get; set; }
Overrides:
Gets or sets the prompt text that is displayed when the TextBox contains no text.
[Browsable(true)]
public string NullText { get; set; }
Gets or sets a color of the null text.
[Browsable(false)]
public Color NullTextColor { get; set; }
Gets or sets whether to use different than SystemColors.GrayText color for the prompt text.
[Browsable(true)]
public Color PromptForeColor { get; set; }
Gets or sets a value indicating whether the null text will be shown when the control is focused and the text is empty.
[Browsable(false)]
public bool ShowNullText { get; set; }
Gets or sets a value indicating whether to show the bottom part of characters, clipped due to font name or size particularities.
[Browsable(false)]
public bool UseGenericBorderPaint { get; set; }
Methods
Draws the NullText in the client area of the TextBox using the default font and color.
Overload to automatically create the Graphics region before drawing the text prompt
protected virtual void DrawTextPrompt()
The Graphics region is disposed after drawing the prompt.
Resets the null text to an empty string.
public void ResetNullText()
Returns a value indicating whether the NullText should be serialized.