@@ -35,30 +35,6 @@ Comments can be inserted into the selected text with a specified date, author, a
35
35
let specificDate = new Date (2024 , 6 , 23 , 14 , 30 , 0 );
36
36
37
37
38
- // Define the properties of the comment including author, date, and resolution status.
39
- let commentProperties = {
40
- author: ' Nancy Davolio' , // The author of the comment.
41
- dateTime: specificDate , // The date and time when the comment is created.
42
- isResolved: false // The status of the comment; false indicates it is unresolved.
43
- };
44
-
45
- // Insert the comment with the specified properties into the document editor.
46
- documentEditor .editor .insertComment (' Hello world' , commentProperties );
47
- ```
48
- ## Add a New Comment with Date, Author, and Status
49
-
50
- Comments can be inserted into the selected text with a specified date, author, and status.
51
-
52
- ``` typescript
53
- // In this example, a comment with the text "Hello world"
54
- // is added by the author Nancy Davolio on July 23, 2024, at 2:30 PM.
55
- // The isResolved status is set to false.
56
-
57
- // Create a specific date: July 23, 2024, at 2:30:00 PM.
58
- // Note: July is represented by 6 (0-based index).
59
- let specificDate = new Date (2024 , 6 , 23 , 14 , 30 , 0 );
60
-
61
-
62
38
// Define the properties of the comment including author, date, and resolution status.
63
39
let commentProperties = {
64
40
author: ' Nancy Davolio' , // The author of the comment.
0 commit comments