Class frmSimpleAdd
Represents a window or dialog box that is used for adding simple text item.
Inheritance
Namespace: Syncfusion.Windows.Forms.Edit.Dialogs
Assembly: Syncfusion.Edit.Windows.dll
Syntax
public class frmSimpleAdd : Form
Constructors
frmSimpleAdd()
Initializes a new instance of the frmSimpleAdd class.
Declaration
public frmSimpleAdd()
frmSimpleAdd(String, String, Regex)
Initializes a new instance of the frmSimpleAdd class.
Declaration
public frmSimpleAdd(string value, string example, Regex validator)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Value string. |
System.String | example | Example string. |
System.Text.RegularExpressions.Regex | validator | Validator. |
Properties
Example
Gets or sets the text associated with the label control.
Declaration
public string Example { get; set; }
Property Value
Type |
---|
System.String |
InvalidColor
Gets or sets the color of invalid text.
Declaration
public Color InvalidColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
ReverseValidation
Gets or sets a value indicating whether validation is reverse or not.
Declaration
public bool ReverseValidation { get; set; }
Property Value
Type |
---|
System.Boolean |
Validator
Gets or sets the regular expression which helps to validate the input control data.
Declaration
public Regex Validator { get; set; }
Property Value
Type |
---|
System.Text.RegularExpressions.Regex |
ValidColor
Gets or sets the color of valid text.
Declaration
public Color ValidColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Value
Gets or sets form input control value
Declaration
public string Value { get; set; }
Property Value
Type |
---|
System.String |
Methods
CreateAccessibilityInstance()
New instance for add dialog accessible object.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type | Description |
---|---|
System.Windows.Forms.AccessibleObject | AddTextAccessibility |
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
EnableDoubleBuffering()
Enables double buffering for the form thats helps to renderer all paint operations to a memory buffer instead of the drawing surface on the screen.
Declaration
public void EnableDoubleBuffering()
ShouldSerializeValidColor()
Method check is for property ValidColor code serialization required. Method used by IDE for code Dom serialization.
Declaration
protected bool ShouldSerializeValidColor()
Returns
Type | Description |
---|---|
System.Boolean | True - serialization required, otherwise False. |
UpdateControlColor()
According to validation options update control font color
Declaration
protected void UpdateControlColor()
UpdateFormSize()
According to user setting update size of form
Declaration
protected void UpdateFormSize()