Skip to main content

TrackedMovesConflictEventArgs.NewLocationRange Property

Provides access to the range of the moved text’s new location.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

public DocumentRange NewLocationRange { get; }

Property Value

Type Description
DocumentRange

A DocumentRange object that is new location’s range.

Remarks

The TrackedMovesConflictEventArgs.OriginalLocationRange property provides access to the range of the moved text’s original location.

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;
}
See Also