Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatInputTextBoxElement : RadTextBoxElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementRadTextBoxElementChatInputTextBoxElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChatInputTextBoxElement class.
public ChatInputTextBoxElement()
Properties
Gets the number of lines currently occupied by the text (i.e. the current wrap/line-break state), as opposed to MaxInputLines which is a static configuration limit.
[Browsable(false)]
public int CurrentLineCount { get; }
public int MaxInputLines { get; set; }
Gets or sets whether the text box is in multiline mode.
public bool Multiline { get; set; }
Gets or sets the text displayed when the input field is empty and unfocused.
public string NullText { get; set; }
This text is typically shown as a placeholder to indicate the expected input or provide guidance to the user. Setting this property to an empty string disables the placeholder text.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Releases managed resources used by the RadTextBoxElement and unsubscribes from event handlers.
protected override void DisposeManagedResources()
Overrides:
Gets the horizontal pixel position (relative to the text box's client area) of the end
of the text, provided the text currently occupies a single visual line. Returns
-1 if the text box is unavailable/not created, or the text currently wraps to
more than one line (in which case a single required-width measurement is meaningless).
Callers use this - instead of GDI text measurement - to decide whether the text would
still fit on a single line at a narrower (e.g. inline) width, by reading the real,
live Win32 EDIT control's own character position rather than approximating it, which
previously caused visual bugs due to GDI/EDIT-control rendering discrepancies.
Initializes the default field values and properties for the text box element including stretch behavior and embedded label border offset.
protected override void InitializeFields()
Overrides:
Measures the desired size of the element and its children based on the available space.
Raises the MultilineChanged event with the specified event arguments.
protected override void OnMultilineChanged(EventArgs e)
An EventArgs that contains the event data.
Overrides:
Events
Occurs when the number of lines currently occupied by the text changes (e.g. as a result of typing, resizing, wrapping, or pasting text).
public event EventHandler LineCountChanged