Back to Devexpress

CommentCollection.Create(DocumentPosition, Int32, String, DateTime) 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-system-dot-datetime-x29.md

latest2.7 KB
Original Source

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Parameters

NameTypeDescription
startDocumentPosition

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

TypeDescription
Comment

A Comment object successfully created.

|

Remarks

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

See Also

CommentCollection Interface

CommentCollection Members

DevExpress.XtraRichEdit.API.Native Namespace