Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeDiffEdit

OfficeIMO.Diff

Namespace
OfficeIMO.Diff
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Implements
IEquatable<OfficeDiffEdit>
Modifiers
sealed

One contiguous run of an edit script.

Inheritance

  • ValueType
  • OfficeDiffEdit

Remarks

OfficeDiffEdit.OldStart and OfficeDiffEdit.NewStart are always the positions in each sequence where the run applies. For OfficeDiffOperation.Insert the old length is zero; for OfficeDiffOperation.Delete the new length is zero.

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Constructors

public OfficeDiffEdit(OfficeDiffOperation operation, int oldStart, int oldLength, int newStart, int newLength) #

Creates an edit run.

Parameters

operation OfficeIMO.Diff.OfficeDiffOperation required
oldStart int required
oldLength int required
newStart int required
newLength int required

Methods

Equals 2 overloads
public bool Equals(OfficeDiffEdit other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Diff.OfficeDiffEdit required
An object to compare with this object.

Returns

bool true if the current object is equal to the other parameter; otherwise, false.
public override bool Equals(object? obj) #

Indicates whether this instance and a specified object are equal.

Parameters

obj object? required
The object to compare with the current instance.

Returns

bool true if obj and this instance are the same type and represent the same value; otherwise, false.
public override int GetHashCode() #

Returns the hash code for this instance.

Returns

int A 32-bit signed integer that is the hash code for this instance.
public override string ToString() #

Returns the fully qualified type name of this instance.

Returns

string The fully qualified type name.

Properties

public OfficeDiffOperation Operation { get; } #

Run operation.

public int OldStart { get; } #

Zero-based start in the old sequence.

public int OldLength { get; } #

Number of old items covered.

public int NewStart { get; } #

Zero-based start in the new sequence.

public int NewLength { get; } #

Number of new items covered.