Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions Document-Processing/Word/Word-Processor/blazor/track-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,36 @@ await container.DocumentEditor.Selection.NavigateNextRevisionAsync();
*/
await container.DocumentEditor.Selection.NavigatePreviousRevisionAsync();
```
## Custom Colors for Track Changes

You can set an array of colors to show track changes such as insertions and deletions in the DOCX editor.
Each author is assigned a color in order: the first author gets the first color, the second author gets the next, and so on.
If there are more authors than colors, the assignment starts again from the beginning of the array.

The following example illustrates how to set the color order for track changes in the DOCX Editor

```razor
<SfDocumentEditorContainer @ref="container" EnableToolbar="true" DocumentEditorSettings="settings">
</SfDocumentEditorContainer>

@code {
private SfDocumentEditorContainer container;

// Define settings with revision colors
private DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel()
{
RevisionSettings = new RevisionSettings()
{
RevisionColors = new string[]
{
"#0e76b1",
"#bb00ff",
"#c14f16"
}
}
};
}
```

## Filter changes by user

Expand Down