userMode Property

Summary

Gets or sets the current user mode.

Syntax

JavaScript Syntax
Object.defineProperty(AnnAutomationManager.prototype, 'userMode', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
userMode: AnnUserMode; 

Property Value

A 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

The following example flips the user mode between run and design.

JavaScript Example
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"); 
   } 
}, 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly