/// <summary> /// Initializes an new instance of <see cref="TextContentChangedEventArgs"/> for a Change event. /// </summary> /// <param name="beforeSnapshot">The most recent <see cref="ITextSnapshot"/> before the change occurred.</param> /// <param name="afterSnapshot">The <see cref="ITextSnapshot"/> immediately after the change occurred.</param> /// <param name="options">Edit options that were applied to this change.</param> /// <param name="editTag">An arbitrary object associated with this change.</param> /// <exception cref="ArgumentNullException"><paramref name="beforeSnapshot"/> or /// <paramref name="afterSnapshot"/> or /// <paramref name="options"/> is null.</exception> public TextContentChangedEventArgs(ITextSnapshot beforeSnapshot, ITextSnapshot afterSnapshot, EditOptions options, Object editTag) : base(beforeSnapshot, afterSnapshot, editTag) { this.options = options; }
/// <summary> /// Determines whether two spans are the same. /// </summary> /// <param name="obj">The object to compare.</param> public override bool Equals(object obj) { if (obj is EditOptions) { EditOptions other = (EditOptions)obj; if (other.ComputeMinimalChange != this.ComputeMinimalChange) { return(false); } if (!this.ComputeMinimalChange) { return(true); } return(other.DifferenceOptions == this.DifferenceOptions); } else { return(false); } }