Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Workbook.CommentInserting Event

Occurs before a comment is inserted.

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this event in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

#Event Data

The CommentInserting event's data class is CommentInsertingEventArgs. The following properties provide information specific to this event:

Property Description
Author Gets or sets a name of the comment author.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Reference Gets the reference to the cell containing the comment.
Text Specifies the text of a comment.
Visible Gets or sets a value indicating whether the comment should be displayed in a cell.

#Remarks

The CommentInserting event provides you with information on a comment which the end-user is inserting and allows you to cancel insertion by setting e.Cancel to true.

#Implements

See Also