Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeChangeAnchor

OfficeIMO.Diff

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

Where one side of a change sits in its source: a token range, plus a page, a location label and page regions when the source has them.

Inheritance

  • object
  • OfficeChangeAnchor

Usage

Explore 4 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 2

Accepted by parameters 2

Constructors

public OfficeChangeAnchor(int start, int length, int? pageNumber = null, string? location = null, IEnumerable<OfficeChangeRegion>? regions = null) #

Creates an anchor.

Parameters

start int required
Zero-based index of the first token of the change in the source token sequence.
length int required
Number of tokens; zero marks an insertion point.
pageNumber int? = null optional
One-based page of the first token, when the source is paged.
location string? = null optional
Free-form location, for example a paragraph or cell reference.
regions System.Collections.Generic.IEnumerable<OfficeIMO.Diff.OfficeChangeRegion>? = null optional
Page rectangles covered by the change.

Properties

public int Start { get; } #

Zero-based index of the first token.

public int Length { get; } #

Number of tokens; zero marks an insertion point.

public int? PageNumber { get; } #

One-based page, when the source is paged.

public string? Location { get; } #

Free-form location label.

public IReadOnlyList<OfficeChangeRegion> Regions { get; } #

Page rectangles covered by the change.