ClassHostedTextBoxBase
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
HostedTextBoxBase()
Declaration
public HostedTextBoxBase()
Properties
Multiline
Controls whether the text of the edit control can span more than one line.
Declaration
public override bool Multiline { get; set; }
Property Value
Overrides
NullText
Gets or sets the prompt text that is displayed when the TextBox contains no text.
Declaration
[Browsable(true)]
public string NullText { get; set; }
Property Value
NullTextColor
Gets or sets a color of the null text.
Declaration
[Browsable(false)]
public Color NullTextColor { get; set; }
Property Value
PromptForeColor
Gets or sets whether to use different than SystemColors.GrayText color for the prompt text.
Declaration
[Browsable(true)]
public Color PromptForeColor { get; set; }
Property Value
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
[Browsable(false)]
public bool ShowNullText { get; set; }
Property Value
UseGenericBorderPaint
Gets or sets a value indicating whether to show the bottom part of characters, clipped due to font name or size particularities.
Declaration
[Browsable(false)]
public bool UseGenericBorderPaint { get; set; }
Property Value
Methods
DrawNullText(Graphics)
Draws the NullText in the client area of the TextBox using the default font and color.
Declaration
protected virtual void DrawNullText(Graphics graphics)
Parameters
graphics
DrawTextPrompt()
Overload to automatically create the Graphics region before drawing the text prompt
Declaration
protected virtual void DrawTextPrompt()
Remarks
The Graphics region is disposed after drawing the prompt.
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
e
Overrides
OnParentChanged(EventArgs)
Declaration
protected override void OnParentChanged(EventArgs e)
Parameters
e
Overrides
OnTextAlignChanged(EventArgs)
Declaration
protected override void OnTextAlignChanged(EventArgs e)
Parameters
e
Overrides
PaintBorders(PaintEventArgs)
Declaration
protected void PaintBorders(PaintEventArgs e)
Parameters
e
ResetNullText()
Resets the null text to an empty string.
Declaration
public void ResetNullText()
ShouldSerializeNullText()
Returns a value indicating whether the NullText should be serialized.
Declaration
public bool ShouldSerializeNullText()
Returns
Whether to serialize the null text.
WndProc(ref Message)
Declaration
protected override void WndProc(ref Message message)
Parameters
message
Overrides