Back to Devexpress

CommentCollection.Create(DocumentPosition, Int32, String) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-commentcollection-dot-create-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentposition-system-dot-int32-system-dot-string-x29.md

latest2.5 KB
Original Source

CommentCollection.Create(DocumentPosition, Int32, String) Method

Creates a new Comment with the specified settings.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
Comment Create(
    DocumentPosition start,
    int length,
    string author
)
vb
Function Create(
    start As DocumentPosition,
    length As Integer,
    author As String
) As Comment

Parameters

NameTypeDescription
startDocumentPosition

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

TypeDescription
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

CommentCollection Interface

CommentCollection Members

DevExpress.XtraRichEdit.API.Native Namespace