Skip to main content
Version: 3.5

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.

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

Instance memberReadOnly

Boolean: Returns or sets whether the text box control is read-only.

Events

Instance memberReadOnlyChanged

EventHandler Fired when the value of the ReadOnly property has changed.

Implemented By

NameDescription
CheckBoxRepresents a check box control.
CheckedListBoxDisplays a ListBox in which a check box is displayed to the left of each item.
ComboBoxRepresents a combo box control.
DateTimePickerRepresents a control that allows the user to select or type a date and a time.
DomainUpDownRepresents a spinner control that displays string values.
ListBoxRepresents a control to display a list of items.
MaskedTextBoxUses a mask to distinguish between proper and improper user input.
MonthCalendarRepresents a control that enables the user to select a date using a visual monthly calendar display.
NumericUpDownRepresents a spinner control that displays numeric values.
RadioButtonEnables the user to select a single option from a group of choices when paired with other RadioButton controls.
TextBoxRepresents a text box control that allows the user to enter any value.
TextBoxBaseImplements the basic functionality required by text controls.
UpDownBaseImplements the basic functionality required by a spin box (also known as an up-down control).
DataGridViewComboBoxEditingControlRepresents a ComboBox control that can be hosted in a DataGridViewComboBoxCell.
DataGridViewDateTimePickerEditingControlRepresents a DateTimePicker control that can be hosted in a DataGridViewDateTimePickerCell.
DataGridViewMaskedTextBoxEditingControlRepresents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell.
DataGridViewNumericUpDownEditingControlRepresents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell.
DataGridViewTextBoxEditingControlRepresents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False.
DataGridViewRepresents a data grid control.
ListViewComboBoxThe TreeViewComboBox control represents a UserComboBox control with a ListView as the drop down panel.
TagTextBoxRepresents 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.
TimeUpDownRepresents a spinner control that displays TimeSpan values.
TreeViewComboBoxThe TreeViewComboBox control represents a UserComboBox control with a TreeView as the drop down panel.
TypedTextBoxRepresents a text box control that allows the user to enter a typed value.
UserComboBoxThe UserComboBox control represents a ComboBox control with a custom panel that drops down when the user clicks the down arrow.
PropertyGridProvides a user interface for browsing the properties of an object.