LEADTOOLS JavaScript (Leadtools.Annotations.Automation)
LEAD Technologies, Inc

UserMode Property

Example 
Gets or sets the current user mode.
Syntax
  get_userMode();
 set_userMode(value);

Property Value

TypeDescription
AnnUserModeA AnnUserMode value that specifies the current user mode. The default value is AnnUserMode.Design.
Remarks

AnnUserMode.Design is for creating objects; AnnUserMode.Run mode is for viewing them.

The UserModeChanged event is fired when the value of this property is changed.

Example

This example flips the user mode between run and design.

example: function SiteLibrary_DefaultPage$example() {
   var manager = this._automation.get_manager();
   if(manager.get_userMode() == Leadtools.Annotations.Core.AnnUserMode.design) {
      manager.set_userMode(Leadtools.Annotations.Core.AnnUserMode.run);
      alert("User mode is run, click again to go to design mode");
   } else {
      manager.set_userMode(Leadtools.Annotations.Core.AnnUserMode.design);
      alert("User mode is design, click again to go to run mode");
   }
},
See Also

Reference

AnnAutomationManager Object
AnnAutomationManager Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.