[]
        
(Showing Draft Content)

IAuthor

Interface IAuthor


public interface IAuthor
Represents the author of a threaded comment.

An IAuthor object stores the user name associated with a threaded comment. You can obtain this interface from ICommentThreaded.getAuthor() and use it to read or update the author name.


 ICommentThreaded comment = worksheet.getRange("A1").addCommentThreaded("Please review the total.", "Alice");
 IAuthor author = comment.getAuthor();
 author.setName("Alicia");
 String name = author.getName();
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the user name of the author.
    void
    Sets the user name of the author.
  • Method Details

    • getName

      String getName()
      Gets the user name of the author.

      This value identifies the author associated with the threaded comment.

      
       ICommentThreaded comment = worksheet.getRange("A1").addCommentThreaded("Please review the total.", "Alice");
       IAuthor author = comment.getAuthor();
       String name = author.getName();
       
      Returns:
      The user name of the author.
    • setName

      void setName(String name)
      Sets the user name of the author.

      This value identifies the author associated with the threaded comment.

      
       ICommentThreaded comment = worksheet.getRange("A1").addCommentThreaded("Please review the total.", "Alice");
       IAuthor author = comment.getAuthor();
       author.setName("Alicia");
       
      Parameters:
      name - The user name of the author.