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.1.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
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