Message-ID: <555235825.8143.1711634113499.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8142_432417439.1711634113499" ------=_Part_8142_432417439.1711634113499 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Comment

Comment

Description

A=20 Comment object represents a note attached to a cell, or group = of merged cells, separate from other cell content. A Comment must be associ= ated with a cell, and may only be created using set=20 Comment.Visible to true.=20
C#
=20
 public sealed class Comment : Shape
=20
=20
vb.net
=20
Public NotInheritable Class Comment
=09=09Inherits Shape
=20

Properties

Name

Description

Autho= r

Sets or returns the author of the comment. This = information is displayed in the status bar in Excel when a comment is selec= ted.

Cell

This returns the Cell object that this comment i= s associated with.

Fi= tToText

Sets or returns whether the comment's shape will= be automatically sized to fit the text.

HorizontalAlignment

Sets or returns the horizontal alignment of text= within the comment.

Shape<= /a>

Return a Shape object representing the display area of the comment. The Shape object may be used to set advanced formatting options such as fill, bord= er, size, or position.

Text

Sets or returns the body text of the comment.

VerticalAlignment

Sets or returns the vertical alignment of text w= ithin the comment.

Visi= ble

Sets or returns whether the comment will be visi= ble when the document is opened in Excel. By default, the comment will be h= idden, and will be displayed only if the user hovers over the comment's cel= l.

Methods

Name

Description

ClearRichTextFormatting()

Clears all rich text formatting within the comme= nt. The font of the comment text will be set to the font set (through the E= xcelWriter API) for the cell the comment is attached to.

GetCharacters(Int32)

Returns a = CharacterRun object representing a range of characters within the comme= nt text. Use this to set the font on specified characters within the text.<= /td>

GetCharacters(Int32, Int32)

Returns a = CharacterRun object representing a range of characters within the comme= nt text. Use this to set the font on specified characters within the text.<= /td>
------=_Part_8142_432417439.1711634113499--