Class MultilineTextBox
Implements multiline text editor.
[ControlCategory("Common")]
public class MultilineTextBox : TextBox, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IWin32Window, ICustomTextBox, IDisposable, IReadOnlyStrings, IValidatorReporter, IObjectToStringOptions, INotifyDataErrorInfo, ISimpleRichTextBox
- Inheritance
-
MultilineTextBox
- Implements
Examples
Here is how to declare a MultilineTextBox in UIXML:
<MultilineTextBox Name="textBox1" Dock="Fill" HasBorder="false" TextChanged="TextBox_TextChanged"/>
And the corresponding event handler in the code-behind:
internal void TextBox_TextChanged(object? sender, EventArgs e)
{
Application.Log("Text changed");
}
Also, a MultilineTextBox can be created from code:
MultilineTextBox result = new()
{
HasBorder = false,
MinimumSize = (200, 50),
Dock = DockStyle.Bottom,
Parent = mainPanel,
};
result.Text = "Bottom";
Remarks
Example of how a MultilineTextBox can look:
Constructors
- MultilineTextBox()
Initializes a new instance of the MultilineTextBox class.
Properties
- CanUserPaint
Always returns
false
.
- ControlKind
Returns control identifier.
- Multiline
Always returns
true
.