Rank: Advanced Member
  Groups: Guest
 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.  
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
         
		   
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 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.
 
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
		
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 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).
  
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
         
		   
        
            
            
	
    
        
Rank: Advanced Member
  Groups: Guest
 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.
 
            
  
         
     | 
	
    | 
         
             
     | 
	
    
         
            
         
     | 
    | 
        
     | 
        
        
        
    
    
        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.