Aspose::Cells::Comment::SetHtmlNote method

Comment::SetHtmlNote(const U16String&) method

Gets and sets the html string which contains data and some formats in this comment.

void Aspose::Cells::Comment::SetHtmlNote(const U16String &value)

Remarks

If this is a threaded comment, the note could not be changed, otherwise MS Excel could not process it as a threaded comment.

Examples

U16String htmlNote = u"<Font Style='FONT-FAMILY: Calibri;FONT-SIZE: 11pt;COLOR: #0000ff;TEXT-ALIGN: left;'>This is a <b>test</b>.</Font>";
comment1.SetHtmlNote(htmlNote);

See Also

Comment::SetHtmlNote(const char16_t*) method

Gets and sets the html string which contains data and some formats in this comment.

void Aspose::Cells::Comment::SetHtmlNote(const char16_t *value)

Remarks

If this is a threaded comment, the note could not be changed, otherwise MS Excel could not process it as a threaded comment.

Examples

comment1.SetHtmlNote(u"<Font Style='FONT-FAMILY: Calibri;FONT-SIZE: 11pt;COLOR: #0000ff;TEXT-ALIGN: left;'>This is a <b>test</b>.</Font>");

See Also