Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

TrackedMovesConflictEventArgs.ResolveMode Property

Gets or sets what version of moved text to keep.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

public TrackedMovesConflictResolveMode ResolveMode { get; set; }

Property Value

Type Description
TrackedMovesConflictResolveMode

One of the TrackedMovesConflictResolveMode enumeration values indication the resolve mode.

Remarks

Use the ResolveMode property to specify the version of moved text you want to keep.

The code sample below shows how to handle the TrackedMovesConflict event to keep original text:

private void WordProcessor_TrackedMovesConflict(object sender, TrackedMovesConflictEventArgs e)
{
  //Compare the length of the original and new location ranges
  //Keep text from the location whose range is the smallest
  e.ResolveMode = (e.OriginalLocationRange.Length <= e.NewLocationRange.Length) ? TrackedMovesConflictResolveMode.KeepOriginalLocationText : TrackedMovesConflictResolveMode.KeepNewLocationText;
}

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

See Also