ISalEditControl
Namespace: PPJ.Runtime.Windows
Assembly: PPJ.Web.50 (5.0.0.0)
Exposes validation, formatting, and input constraints for an editable SAL control.
- C#
- VB.NET
public interface ISalEditControl : ISalControl
Public Interface ISalEditControl
Inherits ISalControl
Example:
bool Validate(PPJ.Runtime.Windows.ISalEditControl control)
{
if (!control.ValidateDataType())
return false;
control.ApplyFormat();
control.Validated = true;
return true;
}
Properties
CultureInfo
CultureInfo: Gets or sets the culture used to interpret and format the control value.
EditMask
String: Gets or sets the mask that constrains editable input.
Format
String: Gets or sets the SAL format picture used to display the value.
MaxLength
Int32: Gets or sets the maximum input length, in characters.
Validated
Boolean: Gets or sets whether the current content has been validated.
Methods
ApplyFormat()
Formats the current value using the control's format picture.
ValidateDataType()
Checks whether the current content can be interpreted as the control's data type.
Returns: Boolean. if the content is valid for the data type; otherwise, .
Implemented By
| Name | Description |
|---|---|
| SalComboBox | Combines a selectable item list with SAL editing, formatting, and validation behavior. |
| SalDataField | Provides a masked input field with SAL data types, formatting, validation, and window actions. |
| SalMultilineField | Provides multiline text input with SAL editing, validation, and window actions. |
| SalTableColumn | Defines a SAL table column, its per-row value, display formatting, editor, and window actions. |
| VisCalendar | |
| VisCalendarDropDown | |
| VisColorComboBox | |
| VisComboBoxBase | |
| VisDriveComboBox | |
| VisDropDownBase | |
| VisFontComboBox | |
| VisFontNameComboBox | |
| VisListViewDropDown | |
| VisOutlineComboBox | |
| VisPictureComboBox | |
| VisSpinField |