get_userMode();
set_userMode(value);
Object.defineProperty('userMode');
Type | Description |
---|---|
AnnUserMode | A AnnUserMode value that specifies the current user mode. The default value is AnnUserMode.Design. |
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.
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"); } },