[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.CommentCollection.Add

Add Method

Add(string, string)

Adds a Comment to this collection at the Content position.

Declaration
public Comment Add(string text = null, string author = null)
Public Function Add(Optional text As String = Nothing, Optional author As String = Nothing) As Comment
Parameters
Type Name Description
string text

The new comment text.

string author

The new comment author.

Returns
Type Description
Comment

The added Comment.

Add(string, string, DateTime)

Adds a Comment to this collection.

Declaration
public Comment Add(string text, string author, DateTime date)
Public Function Add(text As String, author As String, [date] As Date) As Comment
Parameters
Type Name Description
string text

The new comment text.

string author

The new comment author.

DateTime date

The new comment date.

Returns
Type Description
Comment

The added Comment.

Add(string, string, DateTime, string)

Adds a Comment to this collection.

Declaration
public Comment Add(string text, string author, DateTime date, string initials)
Public Function Add(text As String, author As String, [date] As Date, initials As String) As Comment
Parameters
Type Name Description
string text

The new comment text.

string author

The new comment author.

DateTime date

The new comment date.

string initials

The new comment author initials.

Returns
Type Description
Comment

The added Comment.