Skip to main content

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

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.v24.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#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 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