LEADTOOLS JavaScript (Leadtools.Annotations.Automation)

UserMode Property

Show in webframe
Example 
Gets or sets the current user mode.
Syntax
get_userMode();
set_userMode(value);
Object.defineProperty('userMode');

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() == lt.Annotations.Core.AnnUserMode.design) {
      manager.set_userMode(lt.Annotations.Core.AnnUserMode.run);
      alert("User mode is run, click again to go to design mode");
   } else {
      manager.set_userMode(lt.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-2014 All Rights Reserved. LEAD Technologies, Inc.