Drawing3d documented Class Library

MNComponent.ChildByPathName Method

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

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

[Visual Basic]
Public Sub ChildByPathName( _
   ByVal value As String _
)
[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 | Drawing3d Namespace