An NDoc Documented Class Library

MNComponent Members

MNComponent overview

Public Instance Constructors

MNComponent Constructor Initializes a new instance of the MNComponent class.

Public Instance Fields

GenerateNames If GenerateNames is true then a MNName willbe generated if the parent is set to a component with has no name. With GenerateNames is guarantized, the every member of a tree ( except the root ) has a unique name and there is a fullpath, with that the element can be identified.
UpDateCount 

Public Instance Properties

Count Returns the count of children
Item The default indexer retieves and sets MNComponents
MNName Name of the component.
Parent Sets or gets the parent of the component and looks for the correct and unique name.
See also GenerateNames, setParent
Tag 

Public Instance Methods

addChild Adds an elment in the list.
ChildByName Retrieves the index of child by a name.
ChildByPathName 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

Dispose 
Equals (inherited from Object) 
fullPath Gives the full path of the component over all ancestors until a null-parent occurs. This parent often called the root. The separator of the names is "/".
GetEnumerator Returns the Enumerator of an intern ArrayList
GetHashCode (inherited from Object) 
getPath 
getRoot 
GetType (inherited from Object) 
InsertChild 
MoveTO 
RemoveChild 
ToString (inherited from Object) 
UpDate This protected method is called, if some changes are made. Some times on should inform other components about this changes to obtain a consisting system.
UpDated If you make some changing in the component you should call first
UpDating()
..Change some things
UpDated()
In this case the method UpDate will be called only one time. Internal a counter will be incremented for UpDating and decremented by UpDated. If he is 0 then UpDate is called. See UpDating
UpDating If you make some changing in the component you should call first
UpDating()
..Change some things
UpDated()
In this case the method UpDate will be called only one time. Internal a counter will be incremented for UpDating and decremented by UpDated. If he is 0 then UpDate is called. See UpDated

Public Instance Events

OnUpdate 
OnUpdating 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 
setParent Virtual set-Method of the property Parent.

See Also

MNComponent Class | Minais.Drawing3d Namespace