Back to Devexpress

TrackChangesOptions.DisplayFormatting Property

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

latest4.8 KB
Original Source

TrackChangesOptions.DisplayFormatting Property

Specifies the markup used to indicate changed format options.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(DisplayFormatting.None)]
public DisplayFormatting DisplayFormatting { get; set; }
vb
<DefaultValue(DisplayFormatting.None)>
Public Property DisplayFormatting As DisplayFormatting

Property Value

TypeDefaultDescription
DisplayFormattingNone

One of the DisplayFormatting enumeration values indicating the markup for formatting changes.

|

Available values:

NameDescription
None

No formatting is displayed.

| | ColorOnly |

Only the color is changed for the target content.

| | Bold |

The content is displayed in bold.

| | Italic |

The content is italicized.

| | Underline |

The content is underlined.

| | DoubleUnderline |

The content is underlined with a double line.

| | Strikethrough |

The content is displayed with a strikethrough effect.

| | DoubleStrikethrough |

Content is displayed with the double-strikethrough effect.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DisplayFormatting
AnnotationOptions

.TrackChanges .DisplayFormatting

|

Remarks

Specify the TrackChangesOptions.FormattingColor property to define a color for content with changed format options.

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

csharp
trackChangesOptions.DisplayForReviewMode = DisplayForReviewMode.AllMarkup;
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly;
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue;

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

csharp
trackChangesOptions.DisplayForReviewMode = DisplayForReviewMode.AllMarkup;
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly;
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue;

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

vb
trackChangesOptions.DisplayForReviewMode = DisplayForReviewMode.AllMarkup
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue

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

vb
trackChangesOptions.DisplayForReviewMode = DisplayForReviewMode.AllMarkup
trackChangesOptions.DisplayFormatting = DisplayFormatting.ColorOnly
trackChangesOptions.FormattingColor = RevisionColor.ClassicBlue

See Also

TrackChangesOptions Class

TrackChangesOptions Members

DevExpress.XtraRichEdit Namespace