Converts the specified object to the current object's type. This method is effective when you utilize the Client API IntelliSense feature provided by DevExpress.
public static ASPxClientDashboardViewer Cast( object obj )
Public Shared Function Cast( obj As Object ) As ASPxClientDashboardViewer
The client object to be type cast. Represents an instance of a DevExpress web control's client object.
An object of the ASPxClientDashboardViewer type. Represents the converted client object specified by the obj parameter.
A call to the Cast method (which is a static method) casts the specified client object to the ASPxClientDashboardViewer type. As a result, the object's type is now known and ASPxClientDashboardViewer type specific IntelliSense information can be displayed for this client object, facilitating your coding.
The examples of this method application are as follows.
Converting the event source object passed to a client event's handler:
Converting a client object accessed by using the value of the ClientInstanceName (or ID) property. For instance, if a web control's ClientInstanceName property is set to 'ASPxClientDashboardViewer1', the object can be type cast in the following manner:
... var clientObject = ASPxClientDashboardViewer.Cast('ASPxClientDashboardViewer1');