Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

CommentCollection.Create(DocumentPosition, Int32, String, DateTime) Method

Creates a comment for the specified range and assigns the comment’s author and creation date.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

Comment Create(
    DocumentPosition start,
    int length,
    string author,
    DateTime date
)

Parameters

Name Type Description
start DocumentPosition

A DocumentPosition that specifies the start of the range being commented.

length Int32

An integer that specifies the number of positions by which a document range extends.

author String

A String value that sets the Comment.Author property.

date DateTime

A String value that sets the Comment.Author property. A DateTime object that is the comment creation date.

Returns

Type Description
Comment

A Comment object successfully created.

Remarks

The created comment is added to the SubDocument.Comments collection automatically .

See Also