Skip to main content
All docs
V25.1
  • TrackedMovesConflictEventArgs.ResolveMode Property

    Gets or sets what version of moved text to keep.

    Namespace: DevExpress.XtraRichEdit

    Assembly: DevExpress.RichEdit.v25.1.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.

    Available values:

    Name Description
    KeepOriginalLocationText

    Keep text from the original location.

    KeepNewLocationText

    Keep text from the new location.

    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