Discover the TaskPane IsLocked property, control Task pane accessibility in your UI, ensuring users can't close essential features for enhanced productivity....property Specifies whether the task pane is locked to the document...= new Document (); // Create task pane with "MyScript" add-in...