An NDoc Documented Class Library

MNComponent.ChildByPathName Method 

You can get a MNComponent by setting a fullpath relative to the given MNComponent. Separated are the names by "/".

MNComponent root = new MNComponent();
MNComponent a = new MNComponent();
MNComponent b = new MNComponent();
MNComponent c = new MNComponent();
a.MNName = "Frank";
b.MNName = "Joe";
c.MNName = "Sam";
c.Parent = b;
b.Parent = a;
a.Parent = root;
MNComponent d = root.ChildByPathName("Frank/Joe/Sam");
// d is then the component c

public MNComponent ChildByPathName(
   string value
);

Parameters

value
A path relative to the current component

Return Value

If no component with this path was found null will be returned

See Also

MNComponent Class | Minais.Drawing3d Namespace