Group: Forum Members
Last Active: 7 Years Ago
Posts: 2,
Visits: 12
|
Hi all , I ' m trying to create an instance of NTreeLayout as follows Dim treeLayout As New NTreeLayout(document) Dim treeLayout As New NTreeLayout(document)
but I ' m getting this error'New' cannot be used on a class that is declared 'MustInherit'
now then , looking at the user guide , it should be possible to create an instance that way ... What I ' m doing wrong ? User Guide - Tree LayoutThank you all for your responses .
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
Hi , You cannot instantiate an abstract class - you can create an instance of one of the classes that inherit from NTreeLayout - for example & nbsp ; NBalloonTreeLayout ,& nbsp ; NLayeredTreeLayout , NCompactDepthTreeLayout , NTipOverTreeLayout etc . The following example shows the different types of layouts : VB . NET Examples \ Layouts take a look at Compact Depth Tree Layout , Layered Tree Layout and Tip Over Tree layout .& nbsp ; Let us know if you meet any problems or have any questions .
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 7 Years Ago
Posts: 2,
Visits: 12
|
Thank you for your answer , you may want to update the documentation then ... User Guide - NTreeLayoutThe tree layout is used to automatically arrange graphs , which represent tree structures . The tree layout algorithms are encapsulated inside the NTreeLayout class ( derived from NLayout ), which can be instanced on demand : ' create a new tree layout associated with the specified document Dim treeLayout As New NTreeLayout(document)
' create a new tree layout associated with the specified document
Dim treeLayout As New NTreeLayout(document)
|
Group: Forum Members
Last Active: Last Month
Posts: 3,055,
Visits: 4,055
|
Hi , This topic is not part of the official Nevron . NET Vision documentation . Here ' s a link to a topic about a specific tree layout : Layered Tree LayoutAs you can see on the navigation on the left , there isn ' t a link to this old topic , you are referencing . Only the file of this topic has left . Most probably we forgot to delete it from the server . Thank you very much for reporting that . We will delete it from the server soon , so that there isn ' t any confusion .
Best Regards, Nevron Support Team
|