Sys.UI.Control Constructor

When called from a derived class, initializes a new instance of that class.

var a = new MyControl(element);

Term

Definition

element

The Sys.UI.DomElement object that the control will be associated with.

Exception type

Condition

Error.invalidOperation Function

(Debug) The control is already defined.

The Control constructor is a complete constructor function. However, because the Control class is an abstract base class, the constructor should be called only from derived classes.

Show: