Word.Interfaces.CommentContentRangeData interface
An interface describing the data returned by calling commentContentRange.toJSON()
.
Properties
bold | Specifies a value that indicates whether the comment text is bold. |
hyperlink | Gets the first hyperlink in the range, or sets a hyperlink on the range. All hyperlinks in the range are deleted when you set a new hyperlink on the range. |
is |
Checks whether the range length is zero. |
italic | Specifies a value that indicates whether the comment text is italicized. |
strike |
Specifies a value that indicates whether the comment text has a strikethrough. |
text | Gets the text of the comment range. |
underline | Specifies a value that indicates the comment text's underline type. 'None' if the comment text isn't underlined. |
Property Details
bold
Specifies a value that indicates whether the comment text is bold.
bold?: boolean;
Property Value
boolean
Remarks
hyperlink
Gets the first hyperlink in the range, or sets a hyperlink on the range. All hyperlinks in the range are deleted when you set a new hyperlink on the range.
hyperlink?: string;
Property Value
string
Remarks
isEmpty
Checks whether the range length is zero.
isEmpty?: boolean;
Property Value
boolean
Remarks
italic
Specifies a value that indicates whether the comment text is italicized.
italic?: boolean;
Property Value
boolean
Remarks
strikeThrough
Specifies a value that indicates whether the comment text has a strikethrough.
strikeThrough?: boolean;
Property Value
boolean
Remarks
text
Gets the text of the comment range.
text?: string;
Property Value
string
Remarks
underline
Specifies a value that indicates the comment text's underline type. 'None' if the comment text isn't underlined.
underline?: Word.UnderlineType | "Mixed" | "None" | "Hidden" | "DotLine" | "Single" | "Word" | "Double" | "Thick" | "Dotted" | "DottedHeavy" | "DashLine" | "DashLineHeavy" | "DashLineLong" | "DashLineLongHeavy" | "DotDashLine" | "DotDashLineHeavy" | "TwoDotDashLine" | "TwoDotDashLineHeavy" | "Wave" | "WaveHeavy" | "WaveDouble";
Property Value
Word.UnderlineType | "Mixed" | "None" | "Hidden" | "DotLine" | "Single" | "Word" | "Double" | "Thick" | "Dotted" | "DottedHeavy" | "DashLine" | "DashLineHeavy" | "DashLineLong" | "DashLineLongHeavy" | "DotDashLine" | "DotDashLineHeavy" | "TwoDotDashLine" | "TwoDotDashLineHeavy" | "Wave" | "WaveHeavy" | "WaveDouble"
Remarks
Office Add-ins