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) Method

Creates a new Comment with the specified settings.

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
)

#Parameters

Name Type Description
start DocumentPosition

A DocumentPosition value that specifies the start of the DocumentRange for which a comment is being created.

length Int32

An integer value that specifies the DocumentRange.Length of the range.

author String

A String value that sets the Comment.Author property.

#Returns

Type Description
Comment

A Comment object.

#Remarks

Use the Create method to create a comment and add it to the collection of comments in a document.

See Also