IReadOnly
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides access to the ReadOnly property for coontrols that support the read-only mode.
- C#
- VB.NET
public interface IReadOnly
Public Interface IReadOnly
Using IReadOnly allows developers to use uniform code to access the read-only properties and events used by the control.
// Old code
if (control is TextBox)
((TextBox)control).ReadOnly = true;
else if (control is DataGridView)
((DataGridView)control).ReadOnly = true;
// etc...
// New code
if (control is IReadOnly)
((IReadOnly)control).ReadOnlyy = true;
Properties
ReadOnly
Boolean: Returns or sets whether the text box control is read-only.
Events
ReadOnlyChanged
EventHandler Fired when the value of the ReadOnly property has changed.
Implemented By
| Name | Description |
|---|---|
| CheckBox | Represents a check box control. |
| CheckedListBox | Displays a ListBox in which a check box is displayed to the left of each item. |
| ComboBox | Represents a combo box control. |
| DateTimePicker | Represents a control that allows the user to select or type a date and a time. |
| DomainUpDown | Represents a spinner control that displays string values. |
| ListBox | Represents a control to display a list of items. |
| MaskedTextBox | Uses a mask to distinguish between proper and improper user input. |
| MonthCalendar | Represents a control that enables the user to select a date using a visual monthly calendar display. |
| NumericUpDown | Represents a spinner control that displays numeric values. |
| RadioButton | Enables the user to select a single option from a group of choices when paired with other RadioButton controls. |
| TextBox | Represents a text box control that allows the user to enter any value. |
| TextBoxBase | Implements the basic functionality required by text controls. |
| UpDownBase | Implements the basic functionality required by a spin box (also known as an up-down control). |
| DataGridViewComboBoxEditingControl | Represents a ComboBox control that can be hosted in a DataGridViewComboBoxCell. |
| DataGridViewDateTimePickerEditingControl | Represents a DateTimePicker control that can be hosted in a DataGridViewDateTimePickerCell. |
| DataGridViewMaskedTextBoxEditingControl | Represents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell. |
| DataGridViewNumericUpDownEditingControl | Represents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell. |
| DataGridViewTextBoxEditingControl | Represents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False. |
| DataGridView | Represents a data grid control. |
| ListViewComboBox | The TreeViewComboBox control represents a UserComboBox control with a ListView as the drop down panel. |
| TagTextBox | Represents a data field that displays a list of selectable and removable tags. The control recognizes tags as the user types and adds in front of the editable field. |
| TimeUpDown | Represents a spinner control that displays TimeSpan values. |
| TreeViewComboBox | The TreeViewComboBox control represents a UserComboBox control with a TreeView as the drop down panel. |
| TypedTextBox | Represents a text box control that allows the user to enter a typed value. |
| UserComboBox | The UserComboBox control represents a ComboBox control with a custom panel that drops down when the user clicks the down arrow. |
| PropertyGrid | Provides a user interface for browsing the properties of an object. |