Back to Devexpress

TrackChangesOptions.DisplayInsertionStyle Property

officefileapi-devexpress-dot-xtrarichedit-dot-trackchangesoptions-637d7fd6.md

latest4.8 KB
Original Source

TrackChangesOptions.DisplayInsertionStyle Property

Specifies the style of the markup used to indicate inserted content.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDefaultDescription
DisplayInsertionStyleUnderline

One of the DisplayDeletionStyle enumeration values indicating the markup style.

|

Available values:

NameDescription
None

The markup is not displayed.

| | ColorOnly |

Changes only the color of inserted content.

| | Bold |

The inserted content is displayed in bold.’

| | Italic |

The inserted content is italicized.

| | Underline |

The inserted content is underlined.

| | DoubleUnderline |

The inserted content is underlined with a double line.

| | Strikethrough |

The inserted content is displayed with the strikethrough effect.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to DisplayInsertionStyle
AnnotationOptions

.TrackChanges .DisplayInsertionStyle

|

Remarks

Specify the TrackChangesOptions.InsertionColor property to define a color for deleted content.

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

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

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

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

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

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

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

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

See Also

TrackChangesOptions Class

TrackChangesOptions Members

DevExpress.XtraRichEdit Namespace