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

TrackedMovesConflictEventArgs.OriginalLocationRange Property

Retrieves the range of the moved text’s original location.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

public DocumentRange OriginalLocationRange { get; }

Property Value

Type Description
DocumentRange

A DocumentRange object that is original location’s range.

Remarks

The TrackedMovesConflictEventArgs.NewLocationRange property provides access to the range of the moved text’s new 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