Skip to main content

MVCxClientDiagram.Cast(obj) Method

Converts the specified object to the MVCxClientDiagram type.

#Declaration

TypeScript
static Cast(
    obj: any
): MVCxClientDiagram

#Parameters

Name Type Description
obj any

The client object to be type cast.

#Returns

Type Description
MVCxClientDiagram

The converted client object.

#Remarks

Call the static Cast method to cast the specified client object to the MVCxClientDiagram type. As a result, the type specific IntelliSense information can be displayed for the object.

#Example

Convert the event source object passed to a client event’s handler.

<ClientSideEvents Init="function(s, e) { 
     var clientObject = MVCxClientDiagram.Cast(s);
}" /> 

Convert a client object accessed by its DiagramSettings.Name property value.

@Html.DevExpress().Diagram(
     settings => {
          settings.Name = "MVCxClientDiagram1";
...
var clientObject = MVCxClientDiagram.Cast('MVCxClientDiagram1'); 

See Also