This page contains reference documentation for the IsDerived function. This function determines if an object is a subclass of a specific type.
int IsDerived( TypeInformation TypeClass )
Function parameters are as follows:
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;
}
}
For sample code: