ComOfficeKitby KDAN API Reference for Windows
Table of Contents

Class CompareResult

Namespace
ComOfficeKit
Assembly
ComOfficeKit.dll
public sealed record CompareResult : IEquatable<CompareResult>
Inheritance
CompareResult
Implements
Inherited Members

Constructors

CompareResult(bool, int, int, bool, bool)

public CompareResult(bool Identical, int Insertions, int Deletions, bool OriginalHadRevisions, bool RevisedHadRevisions)

Parameters

Identical bool

The two read the same, and nothing was written.

Insertions int

How many insertions the result tracks.

Deletions int

How many deletions the result tracks.

OriginalHadRevisions bool

The original had tracked changes, which were compared as accepted.

RevisedHadRevisions bool

The revised document had tracked changes, which were compared as accepted.

Properties

Deletions

How many deletions the result tracks.

public int Deletions { get; init; }

Property Value

int

Identical

The two read the same, and nothing was written.

public bool Identical { get; init; }

Property Value

bool

Insertions

How many insertions the result tracks.

public int Insertions { get; init; }

Property Value

int

OriginalHadRevisions

The original had tracked changes, which were compared as accepted.

public bool OriginalHadRevisions { get; init; }

Property Value

bool

RevisedHadRevisions

The revised document had tracked changes, which were compared as accepted.

public bool RevisedHadRevisions { get; init; }

Property Value

bool

Methods

Deconstruct(out bool, out int, out int, out bool, out bool)

public void Deconstruct(out bool Identical, out int Insertions, out int Deletions, out bool OriginalHadRevisions, out bool RevisedHadRevisions)

Parameters

Identical bool
Insertions int
Deletions int
OriginalHadRevisions bool
RevisedHadRevisions bool

Equals(CompareResult?)

public bool Equals(CompareResult? other)

Parameters

other CompareResult

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CompareResult?, CompareResult?)

public static bool operator ==(CompareResult? left, CompareResult? right)

Parameters

left CompareResult
right CompareResult

Returns

bool

operator !=(CompareResult?, CompareResult?)

public static bool operator !=(CompareResult? left, CompareResult? right)

Parameters

left CompareResult
right CompareResult

Returns

bool