Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeChange

OfficeIMO.Diff

Namespace
OfficeIMO.Diff
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

One change between two documents.

Inheritance

  • object
  • OfficeChange

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 OfficeChange(int id, OfficeChangeKind kind, string? oldText, string? newText, OfficeChangeAnchor? oldAnchor, OfficeChangeAnchor? newAnchor) #

Creates a change.

Parameters

id int required
One-based identifier, unique within its OfficeChangeSet.
kind OfficeIMO.Diff.OfficeChangeKind required
Change kind.
oldText string? required
Removed text; empty for an insertion.
newText string? required
Added text; empty for a deletion.
oldAnchor OfficeIMO.Diff.OfficeChangeAnchor? required
Position in the old document; for an insertion, the insertion point.
newAnchor OfficeIMO.Diff.OfficeChangeAnchor? required
Position in the new document; for a deletion, the point where the text used to be.

Properties

public int Id { get; } #

One-based identifier.

public OfficeChangeKind Kind { get; } #

Change kind.

public string OldText { get; } #

Removed text; empty for an insertion. For a move, the moved text.

public string NewText { get; } #

Added text; empty for a deletion. For a move, the moved text.

public OfficeChangeAnchor? Old { get; } #

Position in the old document.

public OfficeChangeAnchor? New { get; } #

Position in the new document.