Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ChingYen  
#1 Posted : Monday, October 4, 2010 8:28:16 PM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
Hi,

We tried to do this
Code:

mlv.CurrentDesigner = null;


But it hit error. What we want to do is programmatically set CurrentDesigner = nothing.

Please advise.
Dmitry.Obukhov  
#2 Posted : Tuesday, October 5, 2010 11:24:18 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ching-Yen,

As far as I understand, you need to clear multilayer viewer. Please use this line to do it:
Code:

multiLayerViewer1.Layers[0].VObjects.Clear();

Please let me know if you have any additional questions or problems.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
ChingYen  
#3 Posted : Tuesday, October 5, 2010 7:27:53 PM(UTC)
ChingYen

Rank: Advanced Member

Groups: Member
Joined: 3/3/2008(UTC)
Posts: 185

Thanks: 8 times
No.. We do not want to clear VObject in Multilayer Viewer. We just want to "deselect" all VObjects that has been selected. (Just like click on a empty spot in MLV).
Dmitry.Obukhov  
#4 Posted : Wednesday, October 6, 2010 2:24:04 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ching-Yen,

I understand. To do it, you should use DefaultDesigner class:
Code:
multiLayerViewer1.CurrentDesigner = multiLayerViewer1.DefaultDesigner;
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.