Back to Devexpress

Comment.EndUpdate(SubDocument) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-comment-dot-endupdate-x28-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-x29.md

latest5.6 KB
Original Source

Comment.EndUpdate(SubDocument) Method

Finalizes editing the comment’s content.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void EndUpdate(
    SubDocument document
)
vb
Sub EndUpdate(
    document As SubDocument
)

Parameters

NameTypeDescription
documentSubDocument

A SubDocument object obtained by the Comment.BeginUpdate method.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the EndUpdate(SubDocument) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Comments.cs#L72

csharp
commentDocument.Tables.Create(commentDocument.CreatePosition(9), 5, 4);
    comment.EndUpdate(commentDocument);
}

word-document-api-examples/CS/CodeExamples/CommentsActions.cs#L59

csharp
commentDocument.InsertText(commentDocument.Range.Start, "I agree");
    newComment.EndUpdate(commentDocument);
}

winforms-richedit-iterate-through-all-sub-documents/CS/SubDocumentHelper.cs#L54

csharp
subDocumentProcessor(commentSubDocument);
    comment.EndUpdate(commentSubDocument);
}

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/CommentsActions.cs#L95

csharp
commentDocument.Tables.Create(commentDocument.CreatePosition(13), 5, 4);
    comment.EndUpdate(commentDocument);
}

word-document-api-iterate-through-all-sub-documents/CS/SubDocumentHelper.cs#L54

csharp
subDocumentProcessor(commentSubDocument);
    comment.EndUpdate(commentSubDocument);
}

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Comments.vb#L64

vb
commentDocument.Tables.Create(commentDocument.CreatePosition(9), 5, 4)
    comment.EndUpdate(commentDocument)
End If

word-document-api-examples/VB/CodeExamples/CommentsActions.vb#L53

vb
commentDocument.InsertText(commentDocument.Range.Start, "I agree")
    newComment.EndUpdate(commentDocument)
End If

winforms-richedit-iterate-through-all-sub-documents/VB/SubDocumentHelper.vb#L48

vb
subDocumentProcessor(commentSubDocument)
    comment.EndUpdate(commentSubDocument)
Next

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/CommentsActions.vb#L84

vb
commentDocument.Tables.Create(commentDocument.CreatePosition(13), 5, 4)
    comment.EndUpdate(commentDocument)
End If

word-document-api-iterate-through-all-sub-documents/VB/SubDocumentHelper.vb#L48

vb
subDocumentProcessor(commentSubDocument)
    comment.EndUpdate(commentSubDocument)
Next

See Also

BeginUpdate()

Comment Interface

Comment Members

DevExpress.XtraRichEdit.API.Native Namespace