_Slide.Comments Property
Returns a Comments object that represents a collection of comments. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Comments As Comments
Get
'Usage
Dim instance As _Slide
Dim value As Comments
value = instance.Comments
Comments Comments { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.Comments
Comments
Examples
The following example adds a comment to a slide.
Sub AddNewComment()
ActivePresentation.Slides(1).Comments.Add _
Left:=0, Top:=0, Author:="John Doe", AuthorInitials:="jd", _
Text:="Please check this spelling again before the next draft."
End Sub