Back to Devexpress

TrackChangesOptions.FormattingColor Property

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

latest5.0 KB
Original Source

TrackChangesOptions.FormattingColor Property

Specifies a color used to indicate changed format options.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(RevisionColor.ByAuthor)]
public RevisionColor FormattingColor { get; set; }
vb
<DefaultValue(RevisionColor.ByAuthor)>
Public Property FormattingColor 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 FormattingColor
AnnotationOptions

.TrackChanges .FormattingColor

|

Remarks

Specify the TrackChangesOptions.DisplayFormatting property to define a display style for content with changed format options.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FormattingColor 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#L30

csharp
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly;
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue;
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline;

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

csharp
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly;
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue;
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline;

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

vb
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline

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

vb
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue
trackChangesOptions.DisplayInsertionStyle = DisplayInsertionStyle.Underline

See Also

TrackChangesOptions Class

TrackChangesOptions Members

DevExpress.XtraRichEdit Namespace