# OfficeChangeAnchor

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.

Class 

`OfficeIMO.Diff`

**Namespace**

`OfficeIMO.Diff`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeChangeSet.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L55)

**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

- Property [OfficeChange.New](/api/core/officeimo-diff-officechange/#property-new)
- Property [OfficeChange.Old](/api/core/officeimo-diff-officechange/#property-old)

### Accepted by parameters 2

- Constructor [OfficeChange.OfficeChange](/api/core/officeimo-diff-officechange/#constructor-ctor-int32-officeimo-diff-officechangekind-string-string-officeimo-diff-officechangeanchor-officeimo-diff-officechangeanchor) parameter `newAnchor`
- Constructor [OfficeChange.OfficeChange](/api/core/officeimo-diff-officechange/#constructor-ctor-int32-officeimo-diff-officechangekind-string-string-officeimo-diff-officechangeanchor-officeimo-diff-officechangeanchor) parameter `oldAnchor`

Filter members 

Show inherited

## Constructors

`public OfficeChangeAnchor(int start, int length, int? pageNumber = null, string? location = null, IEnumerable<OfficeChangeRegion>? regions = null)` [#](#constructor-ctor-int32-int32-nullable-system-int32-string-collections-generic-ienumerable-officeimo-diff-officechangeregion)

[OfficeChangeSet.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L55)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int Start { get; }` [#](#property-start)

[OfficeChangeSet.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L67)

Zero-based index of the first token.

`public int Length { get; }` [#](#property-length)

[OfficeChangeSet.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L70)

Number of tokens; zero marks an insertion point.

`public int? PageNumber { get; }` [#](#property-pagenumber)

[OfficeChangeSet.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L73)

One-based page, when the source is paged.

`public string? Location { get; }` [#](#property-location)

[OfficeChangeSet.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L76)

Free-form location label.

`public IReadOnlyList<OfficeChangeRegion> Regions { get; }` [#](#property-regions)

[OfficeChangeSet.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Diff/OfficeChangeSet.cs#L79)

Page rectangles covered by the change.

<!-- PowerForge markdown artifact sha256:80EA94C848E0DAEF81E5D1D201F17D66A9234FA1175AB2E6AE325E90DE8D3BE6 -->
