IReadOnly

Wisej.Web.IReadOnly

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.2.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

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

Events

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

Implemented By

Last updated