|Visual Basic (Declaration)|
Public Class WorksheetCellComment Inherits WorksheetShapeWithText
public class WorksheetCellComment : WorksheetShapeWithText
Comments cannot be added to a worksheet's or a shape group's shapes collection. Instead, they must be set directly on the cell with the cell's WorksheetCell.Comment property.
It is not required that the anchors of this shape be initialized before setting it as the comment of a cell. If the WorksheetShape.TopLeftCornerCell and WorksheetShape.BottomRightCornerCell anchors are both null when the comment is applied to a cell, default anchor cells will be used based on the cell.