Share via


Comment.AuthorInitials Property

Returns the author's initials as a read-only String for a specified Comment object. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property AuthorInitials As String
    Get
'Usage
Dim instance As Comment
Dim value As String

value = instance.AuthorInitials
string AuthorInitials { get; }

Property Value

Type: System.String
String

Remarks

This property only returns the author's initials. To return the author's name use the Author property. Specify the author's initials when you add a new comment to the presentation.

Examples

The following example returns the author's initials for a specified comment.

Sub GetAuthorName()

    With ActivePresentation.Slides(1)

        .Comments.Add Left:=100, Top:=100, Author:="Jeff Smith", _

            AuthorInitials:="JS", _

            Text:="This is a new comment added to the first slide."

        MsgBox .Comments(1).Author & .Comments(1).AuthorInitialsEnd With

End Sub

See Also

Reference

Comment Interface

Comment Members

Microsoft.Office.Interop.PowerPoint Namespace