Back to Devexpress

TrackChangesOptions.InsertionColor Property

officefileapi-devexpress-dot-xtrarichedit-dot-trackchangesoptions-f13736ae.md

latest4.8 KB
Original Source

TrackChangesOptions.InsertionColor Property

Specifies a color used to indicate inserted content.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(RevisionColor.ByAuthor)]
public RevisionColor InsertionColor { get; set; }
vb
<DefaultValue(RevisionColor.ByAuthor)>
Public Property InsertionColor As RevisionColor

Property Value

TypeDefaultDescription
RevisionColorByAuthor

One of the RevisionColor enumeration values indicating the markup color.

|

Available values:

Show 19 items

NameDescription
ByAuthor

The color that corresponds to the current author.

| | Black |

Black (#FF000000)

| | Blue |

Blue (#2E97D3)

| | Turquoise |

Turquoise (#FF40E0D0)’

| | BrightGreen |

Bright Green (#84A35B)

| | Pink |

Pink (#FFFFC0CB)

| | Red |

Red (#B5082E)

| | Yellow |

Yellow (#FFFFFF00)

| | White |

White (#FFFFFFFF)

| | DarkBlue |

Dark Blue (#FF00008B)

| | Teal |

Teal (#FF008080)

| | Green |

Green (#FF556B2F)

| | Violet |

Violet (#FFEE82EE)

| | DarkRed |

Dark Red (#FF8B0000)

| | DarkYellow |

Dark Yellow (#E09A2B)

| | Gray50 |

Gray (#50565E)

| | Gray25 |

Gray (#A0A3A9)

| | ClassicRed |

Red (#84A35B)

| | ClassicBlue |

Blue (#FF0000FF)

|

Property Paths

You can access this nested property as listed below:

Object TypePath to InsertionColor
AnnotationOptions

.TrackChanges .InsertionColor

|

Remarks

Use the TrackChangesOptions.DisplayInsertionStyle property to specify the color for deleted content.

The following code snippets (auto-collected from DevExpress Examples) contain references to the InsertionColor property.

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.

word-document-api-use-track-changes/CS/word-processing-document-api-track-changes/Program.cs#L32

csharp
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline;
trackChangesOptions.InsertionColor = RevisionColor.DarkRed;

winforms-rich-edit-manage-tracked-changes/CS/XtraRichEdit_TrackChanges/Form1.cs#L73

csharp
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline;
trackChangesOptions.InsertionColor = RevisionColor.DarkRed;

word-document-api-use-track-changes/VB/word-processing-document-api-track-changes/Program.vb#L29

vb
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline
trackChangesOptions.InsertionColor = RevisionColor.DarkRed

winforms-rich-edit-manage-tracked-changes/VB/XtraRichEdit_TrackChanges/Form1.vb#L60

vb
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline
trackChangesOptions.InsertionColor = RevisionColor.DarkRed
richEditControl1.Options.Annotations.Author = "Anne Dodsworth"

See Also

TrackChangesOptions Class

TrackChangesOptions Members

DevExpress.XtraRichEdit Namespace