Class GPALTextArea
A GPAL multiline textare instantiated with GPAL.TextArea for use on GPAL forms.
Callback EventHandler is invoked on the GPALTextarea.WindowsControl.TextChanged event.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive.GPALForm
Assembly: GPAL.dll
Syntax
public class GPALTextArea : GPALControl, IAllowControlSettingsAndFontSettings, IAllowFontSettings, IAllowControlSettingsAndEnabled, IAllowControlSettings, IAllowEnabled, IAllowPlaceholder
Examples
static GPALTextArea gPalTextArea = (GPALTextArea)GPAL.TextArea
.WithText("Type something here")
.WithCallback(TextAreaHandler) // on text changed event handler
.WithShortcutKey(System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.T); // Alt-T
GPALForm myForm = (GPALForm)GPAL.Form
.WithTitle("Simple Form Test")
.WithFormControl(gPalTextArea)
.ShowDialog();
Properties
Enabled
Runtime access to Enable/Disable the textarea.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | True [default] - enabled |
Methods
WithEnabled(Boolean)
Fluent interface to set the initial state of the control
Declaration
public IAllowControlSettings WithEnabled(bool enabled)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | enabled | True [default] |
Returns
| Type | Description |
|---|---|
| IAllowControlSettings | Fluent interface to define more settings |
WithPlaceholder(String)
Declaration
public IAllowControlSettings WithPlaceholder(string PlaceholderText)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | PlaceholderText |
Returns
| Type | Description |
|---|---|
| IAllowControlSettings |