-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathWordComment.cs
64 lines (58 loc) · 1.58 KB
/
WordComment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;
namespace OfficeIMO.Word {
public partial class WordComment {
private WordParagraph _paragraph;
private readonly WordDocument _document;
private readonly Comment _comment;
private readonly List<WordParagraph> _list;
/// <summary>
/// ID of a comment
/// </summary>
public string Id => _comment.Id;
/// <summary>
/// Text content of a comment
/// </summary>
public string Text {
get {
return _paragraph.Text;
}
set {
_paragraph.Text = value;
}
}
/// <summary>
/// Initials of a person who created a comment
/// </summary>
public string Initials {
get {
return _comment.Initials;
}
set {
_comment.Initials = value;
}
}
/// <summary>
/// Full name of a person who created a comment
/// </summary>
public string Author {
get {
return _comment.Author;
}
set {
_comment.Author = value;
}
}
/// <summary>
/// DateTime when the comment was created
/// </summary>
public DateTime DateTime {
get => _comment.Date;
set => _comment.Date = value;
}
}
}