Type.IsDerived

This page contains reference documentation for the IsDerived function. This function determines if an object is a subclass of a specific type.

Prototype

int IsDerived( TypeInformation TypeClass )

Parameters

Function parameters are as follows:

Examples

Examples are as follows:

for( int i = 0; i < Model.GetSelectCount(); ++i )
{
   Node node = Model.GetSelectedNode( i ).GetNode();
      if( node.IsDerived( NodeLink ) )
      {
         NodeLink link = (NodeLink)node;
         string prepend = "yakima_w-_7_pt_5_1x2";
         link.PathToFile = prepend + link.PathToFile;
      }
}

Working Sample Code

For sample code: